Commit a593916e authored by Mark Harding's avatar Mark Harding
Browse files

(chore): if channel reported for spam then do immediate ban

parent e0ced6e2
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -114,9 +114,13 @@ class ActionDelegate
                if ($entity->type !== 'user') {
                if ($entity->type !== 'user') {
                    $this->actions->setDeletedFlag($entity, true);
                    $this->actions->setDeletedFlag($entity, true);
                    $this->saveAction->setEntity($entity)->save();
                    $this->saveAction->setEntity($entity)->save();
                }

                    // Apply a strike to the owner
                    // Apply a strike to the owner
                    $this->applyStrike($report);
                    $this->applyStrike($report);
                } else {
                    // Apply a strike to the owner
                    $this->applyBan($report);
                }
                break;
                break;
            //case 12: // Incorrect use of hashtags
            //case 12: // Incorrect use of hashtags
                // De-index post
                // De-index post