FEATURE: Add creator and logging for CustomEmoji (#28004)

* FEATURE: Add logging for CustomEmoji

We didn't provide any logs for CustomEmoji before, nor did we record the
person who added any emoji in the database. As a result, the staff had
no way to trace back who added a certain emoji.

This commit adds a new column `user_id` to `custom_emojis` to record the
creator of an emoji. At the same time, a log is added for staff logs to
record who added or deleted a custom emoji.
This commit is contained in:
锦心
2024-07-22 14:44:49 +08:00
committed by GitHub
parent 23d7800ff1
commit 199f980e6a
7 changed files with 77 additions and 2 deletions

View File

@@ -6226,6 +6226,8 @@ en:
delete_flag: "delete flag"
topic_slow_mode_set: "set topic slow mode"
topic_slow_mode_removed: "remove topic slow mode"
custom_emoji_create: "create custom emoji"
custom_emoji_destroy: "delete custom emoji"
screened_emails:
title: "Screened Emails"
description: "When someone tries to create a new account, the following email addresses will be checked and the registration will be blocked, or some other action performed."