Commit 5c4a7a10 authored by hannes's avatar hannes

make sure returned notice is a repeat, i.e. not a delete activity notice

parent 1eba3359
......@@ -281,7 +281,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();
}
}
......@@ -370,4 +371,4 @@ class SharePlugin extends ActivityVerbHandlerPlugin
return true;
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment