X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FShare%2FSharePlugin.php;h=597fd652dbeff41c95367beb76a269e56401913a;hb=63ab20d20bfe2985402f7f66c3679bcb36e497e8;hp=1f6ddbaa3fb723dea736748bb2217ff7247f83b1;hpb=0e32729e593a51502006bc9e9d391adb342f4272;p=quix0rs-gnu-social.git diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index 1f6ddbaa3f..597fd652db 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -128,7 +128,6 @@ class SharePlugin extends ActivityVerbHandlerPlugin // Notice::saveActivity it will update the Notice object. $stored->repeat_of = $sharedNotice->getID(); $stored->conversation = $sharedNotice->conversation; - $stored->object_type = ActivityUtils::resolveUri(ActivityObject::ACTIVITY, true); // We don't have to save a repeat in a separate table, we can // find repeats by just looking at the notice.repeat_of field. @@ -147,7 +146,6 @@ class SharePlugin extends ActivityVerbHandlerPlugin return true; } - common_debug('Extending activity '.$stored->id.' with '.get_called_class()); $this->extendActivity($stored, $act, $scoped); return false; } @@ -171,7 +169,7 @@ class SharePlugin extends ActivityVerbHandlerPlugin $object = new Activity(); $object->actor = $stored->getProfile()->asActivityObject(); $object->verb = ActivityVerb::SHARE; - $object->content = $stored->rendered; + $object->content = $stored->getRendered(); $this->extendActivity($stored, $object); return $object; @@ -281,7 +279,8 @@ class SharePlugin extends ActivityVerbHandlerPlugin if ($status['repeated'] === true) { // Qvitter API wants the "repeated_id" value set too. $repeated = Notice::pkeyGet(array('profile_id' => $scoped->getID(), - 'repeat_of' => $notice->getID())); + 'repeat_of' => $notice->getID(), + 'verb' => ActivityVerb::SHARE)); $status['repeated_id'] = $repeated->getID(); } }