summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-11 22:52:31 +0500
committerilotterytea <iltsu@alright.party>2025-05-11 22:52:31 +0500
commit01918a6fd58590fe213a8e0f449a607915808b3b (patch)
tree45dfc35b94890e88aeac650df3c3cf859147e100 /public
parentb734bb1853802cf8f7a4ea39861cc5c98ffedfda (diff)
fix: PDOException if emote upload is anonymous
Diffstat (limited to 'public')
-rw-r--r--public/emotes/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/emotes/upload.php b/public/emotes/upload.php
index 8b197a2..5fd2faa 100644
--- a/public/emotes/upload.php
+++ b/public/emotes/upload.php
@@ -394,7 +394,7 @@ if ($is_manual) {
}
}
-if (ACCOUNT_LOG_ACTIONS) {
+if (ACCOUNT_LOG_ACTIONS && $uploaded_by != null) {
$db->prepare("INSERT INTO actions(user_id, action_type, action_payload) VALUES (?, ?, ?)")
->execute([
$uploaded_by,