numist/this-might-be-offensive — Issue #16: upload->exists() should check status
Author: numist
Created: 2011-10-24 22:07:09+00:00
State: open

because "pending" uploads technically don't exist yet, even if they do exist in the database. example: https://thismight.be/offensive/?c=comments&fileid=322468

+--------+--------+-----------------------------+---------------------+---------------+------+----------------------------------+------+-------+---------+
| id | userid | filename | timestamp | ip | nsfw | hash | tmbo | type | status |
+--------+--------+-----------------------------+---------------------+---------------+------+----------------------------------+------+-------+---------+
| 322468 | 3151 | [really late bday] Kye!.jpg | 2011-10-21 10:44:06 | 109.153.103.5 | 0 | 98bffbac34980b44b5d357e7f99a76cb | 0 | image | pending |
+--------+--------+-----------------------------+---------------------+---------------+------+----------------------------------+------+-------+---------+