]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Shared notices didn't save the URL
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 27 Oct 2015 23:13:17 +0000 (00:13 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 27 Oct 2015 23:13:17 +0000 (00:13 +0100)
plugins/ActivityVerbPost/ActivityVerbPostPlugin.php

index 6dd182bc924740b8d266d4b8d30a3ec8b27f49d0..5dd0ee12d7bafb426cb7b9a8a8b277020e2d3c8b 100644 (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,