make sure the notice is a repeat, i.e. not a delete activity notice that also can have a repeat_of set
This commit is contained in:
parent
1630424797
commit
70695a1463
@ -1243,7 +1243,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->id,
|
||||||
'repeat_of' => $notice->id));
|
'repeat_of' => $notice->id,
|
||||||
|
'verb' => 'http://activitystrea.ms/schema/1.0/share'));
|
||||||
|
|
||||||
return !empty($notice);
|
return !empty($notice);
|
||||||
}
|
}
|
||||||
@ -1662,4 +1663,4 @@ class Profile extends Managed_DataObject
|
|||||||
{
|
{
|
||||||
return $this->getUser()->getConnectedApps($offset, $limit);
|
return $this->getUser()->getConnectedApps($offset, $limit);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user