Skip to content

Commit

Permalink
Spam button - set forum id properly, fixes #1696 yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Oct 5, 2023
1 parent 6c29e17 commit 567ca6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions TASVideos.Common/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static class SiteGlobalConstants
public const int PublishedAuthorRoleAddedPostId = 516348;
public const int AutoAssignedRolePostId = 516349;
public const int SpamTopicId = 13101;
public const int SpamForumId = 28;

public const string NewPublicationPostSubject = "Movie published";
public const string NewPublicationPost = @"[b]This movie has been published.[/b]
Expand Down
1 change: 1 addition & 0 deletions TASVideos/Pages/Forum/Posts/Edit.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public async Task<IActionResult> OnPostSpam()
var oldTopicTitle = post.Topic.Title;
var oldForumShortName = post.Topic.Forum!.ShortName;
post.TopicId = SiteGlobalConstants.SpamTopicId;
post.ForumId = SiteGlobalConstants.SpamForumId;

bool topicDeleted = false;
if (postCount == 1)
Expand Down

0 comments on commit 567ca6c

Please sign in to comment.