summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
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,