forked from GNUsocial/gnu-social
Use simple relative object and verb references
This commit is contained in:
parent
e4d5c47ebf
commit
ddda31038e
@ -383,7 +383,10 @@ class Activity
|
||||
// updatedTime <-- should we use? spec says activity MAY have this
|
||||
|
||||
// verb
|
||||
$activity['verb'] = $this->verb;
|
||||
//
|
||||
// We can probably use the whole schema URL here but probably the
|
||||
// relative simple name is easier to parse
|
||||
$activity['verb'] = substr($this->verb, strrpos($this->verb, '/') + 1);
|
||||
|
||||
// TODO: extensions (ActivityContext, OStatus stuff, etc.)
|
||||
|
||||
|
@ -683,7 +683,10 @@ class ActivityObject
|
||||
}
|
||||
|
||||
// objectType
|
||||
$object['type'] = $this->type;
|
||||
//
|
||||
// We can probably use the whole schema URL here but probably the
|
||||
// relative simple name is easier to parse
|
||||
$object['type'] = substr($this->type, strrpos($this->type, '/') + 1);
|
||||
|
||||
// summary
|
||||
$object['summary'] = $this->summary;
|
||||
|
Loading…
x
Reference in New Issue
Block a user