Shared notices didn't save the URL

This commit is contained in:
Mikael Nordfeldth 2015-10-28 00:13:17 +01:00
parent ebbb9a8990
commit 1b81131c51

View File

@ -54,6 +54,9 @@ class ActivityVerbPostPlugin extends ActivityVerbHandlerPlugin
assert($this->isMyActivity($act));
$stored->object_type = ActivityUtils::resolveUri($act->objects[0]->type);
if (common_valid_http_url($act->objects[0]->link)) {
$stored->url = $act->objects[0]->link;
}
// We don't have to do just about anything for a new, remote notice since the fields
// are handled in the main Notice::saveActivity function. Such as content, attachments,