]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If that $options key wasn't set, this won't change anything anyway
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 10 Oct 2015 19:22:07 +0000 (21:22 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 10 Oct 2015 19:22:07 +0000 (21:22 +0200)
plugins/Bookmark/classes/Bookmark.php

index ade6b4fa7bb6fe4018410388206061dba635d8a5..582eee69f44e1246146aa78c2f13e6f0bd62cd20 100644 (file)
@@ -276,9 +276,7 @@ class Bookmark extends Managed_DataObject
                                      'object_type' => ActivityObject::BOOKMARK),
                                $options);
 
-        if (!array_key_exists('uri', $options)) {
-            $options['uri'] = $nb->uri;
-        }
+        $options['uri'] = $nb->uri;
 
         try {
             $saved = Notice::saveNew($profile->id,