]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Fave.php
Add check after oembed API call. In case of error, returned value is false which...
[quix0rs-gnu-social.git] / classes / Fave.php
index 53d60b3a8202138ef58cf2cd6bbf6f8dbeb67444..beeda9aafd314795414ad8c51712de94c2f03a46 100644 (file)
@@ -78,7 +78,7 @@ class Fave extends Managed_DataObject
         return $fave;
     }
 
-    function delete()
+    function delete($useWhere=false)
     {
         $profile = Profile::getKV('id', $this->user_id);
         $notice  = Notice::getKV('id', $this->notice_id);
@@ -87,7 +87,7 @@ class Fave extends Managed_DataObject
 
         if (Event::handle('StartDisfavorNotice', array($profile, $notice, &$result))) {
 
-            $result = parent::delete();
+            $result = parent::delete($useWhere);
             self::blow('fave:list-ids:notice_id:%d', $this->notice_id);
             self::blow('popular');