forked from GNUsocial/gnu-social
Shared notices didn't save the URL
This commit is contained in:
parent
ebbb9a8990
commit
1b81131c51
@ -54,6 +54,9 @@ class ActivityVerbPostPlugin extends ActivityVerbHandlerPlugin
|
|||||||
assert($this->isMyActivity($act));
|
assert($this->isMyActivity($act));
|
||||||
|
|
||||||
$stored->object_type = ActivityUtils::resolveUri($act->objects[0]->type);
|
$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
|
// 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,
|
// are handled in the main Notice::saveActivity function. Such as content, attachments,
|
||||||
|
Loading…
Reference in New Issue
Block a user