Severity: MEDIUM
Location: src/Controllers/FileController.php:574-576
Bug: Rejected uploads still earn credits.
Fix: Move UserCredit::earn to AdminFileController::approve().
Status: open. Will reply with remediation details when resolved.
Severity: MEDIUM
Location: src/Controllers/FileController.php:574-576
Bug: Rejected uploads still earn credits.
Fix: Move UserCredit::earn to AdminFileController::approve().
Status: open. Will reply with remediation details when resolved.
Resolved.
Credits are no longer awarded at upload time. The UserCredit::earn call was removed from FileController::storeUpload and added to AdminFileController::approve (after the atomic quarantine→approved transition from H-2). A user who uploads spam that a mod rejects now earns zero credits.
Upload credits remain proportional to file size (UserCredit::uploadCredits) and respect the role multiplier via UserCredit::earn.
Locking this thread.