forked from GNUsocial/gnu-social
Merge commit '5c4a7a10' into nightly
hannes making sure notice is a repeat and not a delete activity notice
This commit is contained in:
commit
42c653a9d0
@ -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' => ActivityVerb::SHARE));
|
||||||
|
|
||||||
return !empty($notice);
|
return !empty($notice);
|
||||||
}
|
}
|
||||||
|
@ -281,7 +281,8 @@ class SharePlugin extends ActivityVerbHandlerPlugin
|
|||||||
if ($status['repeated'] === true) {
|
if ($status['repeated'] === true) {
|
||||||
// Qvitter API wants the "repeated_id" value set too.
|
// Qvitter API wants the "repeated_id" value set too.
|
||||||
$repeated = Notice::pkeyGet(array('profile_id' => $scoped->getID(),
|
$repeated = Notice::pkeyGet(array('profile_id' => $scoped->getID(),
|
||||||
'repeat_of' => $notice->getID()));
|
'repeat_of' => $notice->getID(),
|
||||||
|
'verb' => ActivityVerb::SHARE));
|
||||||
$status['repeated_id'] = $repeated->getID();
|
$status['repeated_id'] = $repeated->getID();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user