Skip to content

Commit

Permalink
Dont set a reason if nothing changed
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Andrés <diegoandres_cortes@outlook.com>
  • Loading branch information
DiegoAndresCortes committed Jun 15, 2023
1 parent 04a5291 commit 0440025
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -3208,7 +3208,12 @@ function JavaScriptModify()
}
// If nothing was changed there's no need to add an entry to the moderation log.
else
{
$moderationAction = false;

// Clear the reason
$msgOptions['modify_reason'] = '';
}

modifyPost($msgOptions, $topicOptions, $posterOptions);

Expand Down

0 comments on commit 0440025

Please sign in to comment.