diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-07 18:57:32 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-07 18:57:32 +0500 |
| commit | ada4748a25c39b226534ff0475569a8bd25e17ab (patch) | |
| tree | befc462938025044429643dbceec7466e0160997 /public/emotes/upload.php | |
| parent | 73a329d1e620e719932ad8c860f85289c3547ab3 (diff) | |
feat: user actions
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) { |
