]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
We want exceptions to be noticable in activityhandlerplugin
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 16 Jan 2016 20:19:34 +0000 (21:19 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 16 Jan 2016 20:19:34 +0000 (21:19 +0100)
lib/activityhandlerplugin.php

index cb8a6b9bc91c6d42a528f804ef0660a1d8d4af43..b826a705ace80dd80f2cfe39c12c05769398dcc2 100644 (file)
@@ -325,11 +325,7 @@ abstract class ActivityHandlerPlugin extends Plugin
             return true;
         }
 
-        try {
-            $object = $this->activityObjectFromNotice($notice);
-        } catch (NoResultException $e) {
-            $object = null; // because getKV returns null on failure
-        }
+        $object = $this->activityObjectFromNotice($notice);
         return false;
     }