Explicitly forbid posts made by clubs be a deactivation message

This commit is contained in:
celestora 2022-11-16 23:39:48 +02:00 committed by GitHub
parent d33a8f5c1d
commit bf1a443c99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,7 @@ class Post extends Postable
function isDeactivationMessage(): bool
{
return ($this->getRecord()->flags & 0b00100000) > 0;
return (($this->getRecord()->flags & 0b00100000) > 0) && ($this->getRecord()->owner > 0);
}
function isExplicit(): bool