getID() will complain loudly if something is wrong
(just ->id would not)
This commit is contained in:
parent
42c653a9d0
commit
20592f184d
@ -1242,8 +1242,8 @@ class Profile extends Managed_DataObject
|
|||||||
{
|
{
|
||||||
// XXX: not really a pkey, but should work
|
// XXX: not really a pkey, but should work
|
||||||
|
|
||||||
$notice = Notice::pkeyGet(array('profile_id' => $this->id,
|
$notice = Notice::pkeyGet(array('profile_id' => $this->getID(),
|
||||||
'repeat_of' => $notice->id,
|
'repeat_of' => $notice->getID(),
|
||||||
'verb' => ActivityVerb::SHARE));
|
'verb' => ActivityVerb::SHARE));
|
||||||
|
|
||||||
return !empty($notice);
|
return !empty($notice);
|
||||||
@ -1663,4 +1663,4 @@ class Profile extends Managed_DataObject
|
|||||||
{
|
{
|
||||||
return $this->getUser()->getConnectedApps($offset, $limit);
|
return $this->getUser()->getConnectedApps($offset, $limit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -371,4 +371,4 @@ class SharePlugin extends ActivityVerbHandlerPlugin
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user