]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/implugin.php
Fixed group representation in Directory plugin, also some ->raw calls
[quix0rs-gnu-social.git] / lib / implugin.php
index 742147dbbdc90ae3502fd88f9c62a3a8273d6d45..457c9dba5252d9528c3d5eb0568e97820d3d3cd6 100644 (file)
@@ -364,13 +364,16 @@ abstract class ImPlugin extends Plugin
     protected function formatNotice(Notice $notice)
     {
         $profile = $notice->getProfile();
+        $nicknames = $profile->getNickname();
 
         try {
             $parent = $notice->getParent();
             $orig_profile = $parent->getProfile();
-            $nicknames = sprintf('%1$s => %2$s', $profile->nickname, $orig_profile->nickname);
+            $nicknames = sprintf('%1$s => %2$s', $profile->getNickname(), $orig_profile->getNickname());
         } catch (NoParentNoticeException $e) {
-            $nicknames = $profile->nickname;
+            // Not a reply, no parent notice stored
+        } catch (NoResultException $e) {
+            // Parent notice was probably deleted
         }
 
         return sprintf('%1$s: %2$s [%3$u]', $nicknames, $notice->content, $notice->id);