]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/microappplugin.php
Better typing and minor fixes to OStatus related stuff
[quix0rs-gnu-social.git] / lib / microappplugin.php
index 3ed9a76e958f1348d656d0f6ea1a5e8a2a7176be..8cb1450788e9f576bd9397310424f4434ef03aaa 100644 (file)
@@ -353,7 +353,7 @@ abstract class MicroAppPlugin extends Plugin
 
             $actor = $oprofile->checkAuthorship($activity);
 
-            if (empty($actor)) {
+            if (!$actor instanceof Ostatus_profile) {
                 // TRANS: Client exception thrown when no author for an activity was found.
                 throw new ClientException(_('Cannot get author for activity.'));
             }