From bf1a443c996df69d893e1cd3f819510e313a27b1 Mon Sep 17 00:00:00 2001 From: celestora Date: Wed, 16 Nov 2022 23:39:48 +0200 Subject: [PATCH] Explicitly forbid posts made by clubs be a deactivation message --- Web/Models/Entities/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Models/Entities/Post.php b/Web/Models/Entities/Post.php index fef2de68..40769292 100644 --- a/Web/Models/Entities/Post.php +++ b/Web/Models/Entities/Post.php @@ -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