From: Mikael Nordfeldth Date: Tue, 27 Oct 2015 23:13:17 +0000 (+0100) Subject: Shared notices didn't save the URL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b81131c51ccb99c04342654c23877126f9db2cf;p=quix0rs-gnu-social.git Shared notices didn't save the URL --- diff --git a/plugins/ActivityVerbPost/ActivityVerbPostPlugin.php b/plugins/ActivityVerbPost/ActivityVerbPostPlugin.php index 6dd182bc92..5dd0ee12d7 100644 --- a/plugins/ActivityVerbPost/ActivityVerbPostPlugin.php +++ b/plugins/ActivityVerbPost/ActivityVerbPostPlugin.php @@ -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,