forked from GNUsocial/gnu-social
Consistent camelcasing
This commit is contained in:
parent
5dc718c54d
commit
0bdbb32f3b
@ -280,18 +280,12 @@ class Notice extends Managed_DataObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_object_type($canonical=false) {
|
public function getObjectType($canonical=false) {
|
||||||
return $canonical
|
return $canonical
|
||||||
? ActivityObject::canonicalType($this->object_type)
|
? ActivityObject::canonicalType($this->object_type)
|
||||||
: $this->object_type;
|
: $this->object_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
// activity plugins tend to use this function instead, but it's the same
|
|
||||||
public function getObjectType()
|
|
||||||
{
|
|
||||||
return $this->get_object_type();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getByUri($uri)
|
public static function getByUri($uri)
|
||||||
{
|
{
|
||||||
$notice = new Notice();
|
$notice = new Notice();
|
||||||
@ -2405,7 +2399,7 @@ class Notice extends Managed_DataObject
|
|||||||
$this->uri = sprintf('%s%s=%d:%s=%s',
|
$this->uri = sprintf('%s%s=%d:%s=%s',
|
||||||
TagURI::mint(),
|
TagURI::mint(),
|
||||||
'noticeId', $this->id,
|
'noticeId', $this->id,
|
||||||
'objectType', $this->get_object_type(true));
|
'objectType', $this->getObjectType(true));
|
||||||
$changed = true;
|
$changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user