From: Mikael Nordfeldth <mmn@hethane.se>
Date: Tue, 15 Jul 2014 12:12:39 +0000 (+0200)
Subject: Allow exception to be thrown if saveActivityObject fails
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ea8cb21e98b099af744d91831ae2ad0ae87926d0;p=quix0rs-gnu-social.git

Allow exception to be thrown if saveActivityObject fails
---

diff --git a/plugins/Favorite/FavoritePlugin.php b/plugins/Favorite/FavoritePlugin.php
index cc1ad0705a..062b2147ce 100644
--- a/plugins/Favorite/FavoritePlugin.php
+++ b/plugins/Favorite/FavoritePlugin.php
@@ -183,14 +183,7 @@ class FavoritePlugin extends ActivityHandlerPlugin
         // We must have an objects[0] here because in isMyActivity we require the count to be == 1
         $actobj = $act->objects[0];
 
-        try {
-            $object = Fave::saveActivityObject($actobj, $stored);
-        } catch (ServerException $e) {
-            // Probably that the favored notice doesn't exist in our local database
-            // but may also be some missing profile or so, which we could catch in a
-            // more explicit catch-statement.
-            return null;
-        }
+        $object = Fave::saveActivityObject($actobj, $stored);
         return $object;
     }