unrepeat support for older gnu social versions (i.e. quitter.se)

This commit is contained in:
Hannes Mannerheim 2015-11-25 18:26:13 +01:00
parent d54da897e4
commit 962c592e80

View File

@ -451,6 +451,15 @@ class QvitterPlugin extends Plugin {
}
$twitter_status['statusnet_in_groups'] = $group_addressees;
// for older verions of gnu social: include the repeat-id, which we need when unrepeating later
if(array_key_exists('repeated', $twitter_status) && $twitter_status['repeated'] === true) {
$repeated = Notice::pkeyGet(array('profile_id' => $scoped->id,
'repeat_of' => $notice->id,
'verb' => 'http://activitystrea.ms/schema/1.0/share'));
$twitter_status['repeated_id'] = $repeated->id;
}
// more metadata about attachments
// get all attachments first, and put all the extra meta data in an array