From: hannes Date: Sun, 22 Nov 2015 18:59:56 +0000 (+0000) Subject: make sure the notice is a repeat, i.e. not a delete activity notice that also can... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70695a14631389ec0807c6b71288e293aef342c7;p=quix0rs-gnu-social.git make sure the notice is a repeat, i.e. not a delete activity notice that also can have a repeat_of set --- diff --git a/classes/Profile.php b/classes/Profile.php index 49addfe47f..55961bfc9a 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -1243,7 +1243,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)); + 'repeat_of' => $notice->id, + 'verb' => 'http://activitystrea.ms/schema/1.0/share')); return !empty($notice); } @@ -1662,4 +1663,4 @@ class Profile extends Managed_DataObject { return $this->getUser()->getConnectedApps($offset, $limit); } -} +} \ No newline at end of file