From: Evan Prodromou <evan@status.net> Date: Fri, 27 Jan 2012 20:32:13 +0000 (-0500) Subject: non-existent poco X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4085087f13852412f0b97b5c3d2178796c0de7a;p=quix0rs-gnu-social.git non-existent poco --- diff --git a/plugins/Blacklist/BlacklistPlugin.php b/plugins/Blacklist/BlacklistPlugin.php index babf703131..33d0bf430b 100644 --- a/plugins/Blacklist/BlacklistPlugin.php +++ b/plugins/Blacklist/BlacklistPlugin.php @@ -505,14 +505,16 @@ class BlacklistPlugin extends Plugin } } - $nickname = strtolower($actor->poco->preferredUsername); - - if (!empty($nickname)) { - if (!$this->_checkNickname($nickname)) { - // TRANS: Exception thrown trying to post a notice while having a blocked nickname. %s is the blocked nickname. - $msg = sprintf(_m("Notices from nickname \"%s\" disallowed."), - $nickname); - throw new ClientException($msg); + if (!empty($actor->poco)) { + $nickname = strtolower($actor->poco->preferredUsername); + + if (!empty($nickname)) { + if (!$this->_checkNickname($nickname)) { + // TRANS: Exception thrown trying to post a notice while having a blocked nickname. %s is the blocked nickname. + $msg = sprintf(_m("Notices from nickname \"%s\" disallowed."), + $nickname); + throw new ClientException($msg); + } } }