discourse/app
Blake Erickson 1e9ce51151
FIX: Prevent thumbnail gen if image too large (#10247)
It's possible through an import or other means to have images larger
than the current max allowed image size in the db.

If this happens the thumbnail generation job will keep running
indefinitely trying to download a new copy of the original but
discarding it because it is larger than the max_file_size eventually
causing this error

`Job exception: undefined method `path' for nil:NilClass`

because the newly downloaded image is now nil.

This fix stops the enqueuing of the `GenerateTopicThumbnails` job for
all images that happen to be larger than the max image size.
2020-07-16 11:15:53 +10:00
..
assets FEATURE: Improve header meta alignment and truncation with css grid (#10238) 2020-07-15 19:30:35 -04:00
controllers FIX: add noindex header to user summary page. 2020-07-16 02:32:55 +05:30
helpers Revert "PERF: Move highlightjs to a background worker, and add result cache (#10191)" 2020-07-15 13:52:35 +01:00
jobs FEATURE: Allow group moderators to close/archive topics 2020-07-14 12:36:19 -04:00
mailers FEATURE: Implement support for IMAP and SMTP email protocols. (#8301) 2020-07-10 12:05:55 +03:00
models FIX: Prevent thumbnail gen if image too large (#10247) 2020-07-16 11:15:53 +10:00
serializers FEATURE: Allow group moderators to close/archive topics 2020-07-14 12:36:19 -04:00
services FIX: Inject extra lexemes for host lexeme. 2020-07-14 15:32:40 +08:00
views FIX: Correct user profile URLs in `/about` crawler view 2020-07-14 16:09:27 +01:00