forked from GNUsocial/gnu-social
		
	getID() will complain loudly if something is wrong
(just ->id would not)
This commit is contained in:
		| @@ -1242,8 +1242,8 @@ class Profile extends Managed_DataObject | ||||
|     { | ||||
|         // XXX: not really a pkey, but should work | ||||
|  | ||||
|         $notice = Notice::pkeyGet(array('profile_id' => $this->id, | ||||
|                                         'repeat_of' => $notice->id, | ||||
|         $notice = Notice::pkeyGet(array('profile_id' => $this->getID(), | ||||
|                                         'repeat_of' => $notice->getID(), | ||||
|                                         'verb' => ActivityVerb::SHARE)); | ||||
|  | ||||
|         return !empty($notice); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user