update: separate forum categories into their own model

This commit is contained in:
Roardom
2024-02-12 05:30:33 +00:00
parent 88e4ee83a8
commit 686f1560ca
40 changed files with 1023 additions and 581 deletions

View File

@@ -103,7 +103,7 @@ class PostController extends Controller
$realUrl = sprintf('/forums/topics/%s/posts/%s', $topic->id, $post->id);
$profileUrl = sprintf('%s/users/%s', $appUrl, $user->username);
if (config('other.staff-forum-notify') && ($forum->id == config('other.staff-forum-id') || $forum->parent_id == config('other.staff-forum-id'))) {
if (config('other.staff-forum-notify') && ($forum->id == config('other.staff-forum-id') || $forum->forum_category_id == config('other.staff-forum-id'))) {
$topic->notifyStaffers($user, $topic, $post);
} else {
$this->chatRepository->systemMessage(sprintf('[url=%s]%s[/url] has left a reply on topic [url=%s]%s[/url]', $profileUrl, $user->username, $postUrl, $topic->name));