diff options
Diffstat (limited to 'public/emotes/upload.php')
| -rw-r--r-- | public/emotes/upload.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/public/emotes/upload.php b/public/emotes/upload.php index 0b79b5c..42e58c6 100644 --- a/public/emotes/upload.php +++ b/public/emotes/upload.php @@ -389,6 +389,21 @@ if ($is_manual) { } } +$db->prepare("INSERT INTO actions(user_id, action_type, action_payload) VALUES (?, ?, ?)") + ->execute([ + $uploaded_by, + "EMOTE_CREATE", + json_encode([ + "emote" => [ + "id" => $id, + "code" => $code, + "visibility" => $visibility, + "uploaded_by" => $uploaded_by, + ] + ]) + ]); + + $db = null; if (CLIENT_REQUIRES_JSON) { |
