Jarek Radosz 64ce12a758
FIX: OptimizedImage#filesize (#10095)
`OptimizedImage#filesize` calls `Discourse.store.download` with an OptimizedImage as an argument. It would in turn attempt to call `#original_filename` and `#secure?` on that object. Both would fail as these methods do not exist on OptimizedImage, only on Upload. We didn't know about these issues because:
1. `#calculate_filesize` is not called often, because the filesize is saved on OptimizedImage creation, so it's used mostly for manual filesize recalculation
2. we were using `rescue nil` which swallows all errors
2020-07-06 17:01:29 +02:00
..
2020-05-27 19:05:24 +05:30
2019-11-19 10:21:06 +00:00
2020-04-28 15:59:39 +05:30
2019-11-29 15:49:08 +00:00
2019-10-21 12:08:20 +01:00
2019-05-13 15:24:24 +01:00
2020-05-05 13:46:57 +10:00
2019-12-04 13:33:51 -05:00
2020-05-27 19:05:24 +05:30
2020-05-27 19:05:24 +05:30
2020-04-28 15:59:39 +05:30
2019-10-21 12:08:20 +01:00
2020-01-27 15:28:56 +01:00
2020-04-28 15:59:39 +05:30
2020-04-28 15:59:39 +05:30
2020-01-27 15:28:56 +01:00
2019-10-17 16:58:22 +11:00