discourse/app
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
..
assets DEV: Update method documentation in lib/computed.js (#10172) 2020-07-06 09:26:21 -05:00
controllers FEATURE: sso_overrides_(email|username|name) for all auth methods 2020-07-06 10:18:45 +01:00
helpers New bootstrap.json endpoint for starting up Discourse 2020-06-03 14:45:23 -04:00
jobs FEATURE: trigger user_updated event if username is changed. 2020-07-03 00:14:19 +05:30
mailers FIX: Use correct URL for unsubscribe (#10077) 2020-06-24 09:31:20 +02:00
models FIX: OptimizedImage#filesize (#10095) 2020-07-06 17:01:29 +02:00
serializers PERF: Do not include thumbnail information in default topic list payload (#10163) 2020-07-06 10:59:21 +01:00
services FEATURE: sso_overrides_(email|username|name) for all auth methods 2020-07-06 10:18:45 +01:00
views UX: Add Login button on 403 error page if user is not logged in (#10154) 2020-07-01 18:27:42 +03:00