Type-aware comparison is necessary for Notice is_local/scope

This commit is contained in:
Mikael Nordfeldth
2015-10-14 00:27:51 +02:00
parent b6aeff89c4
commit 79c40bc73b
8 changed files with 22 additions and 35 deletions

View File

@@ -38,8 +38,7 @@ class ImQueueHandler extends QueueHandler
function handle($notice)
{
$this->plugin->broadcastNotice($notice);
if ($notice->is_local == Notice::LOCAL_PUBLIC ||
$notice->is_local == Notice::LOCAL_NONPUBLIC) {
if ($notice->isLocal()) {
$this->plugin->publicNotice($notice);
}
return true;