]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Bookmark/BookmarkPlugin.php
Properly parse incoming bookmarks
[quix0rs-gnu-social.git] / plugins / Bookmark / BookmarkPlugin.php
index 780acfcbbc4ca8bd18debfc396a2b81ff5357a78..e6afa0b6daf466e295b786b5aca997a1479aa457 100644 (file)
@@ -355,8 +355,8 @@ class BookmarkPlugin extends MicroAppPlugin
 
         $notice = new Notice();
         
-        $notice->whereAdd('exists (select uri from bookmark where bookmark.uri = notice.uri)');
-        $notice->whereAdd('((object_type is null) or (object_type = "' .ActivityObject::NOTE.'"))');
+        $notice->joinAdd(array('uri', 'bookmark:uri'));
+        $notice->whereAdd('object_type IS NULL OR object_type = '.$notice->_quote(ActivityObject::NOTE));
 
         $notice->find();