Commit Graph

15 Commits (30ee7339d3bd83e80828bc91ef7efb6e30163769)

Author SHA1 Message Date
Matt Jankowski 1820bad646
Fix `Performance/StringIdentifierArgument` cop (#28399) 5 months ago
Matt Jankowski 5631f139c1
Fix `Lint/SymbolConversion` cop (#28175) 6 months ago
Matt Jankowski 63c9102f8a
Fix `RSpec/MessageChain` cop (#27776) 6 months ago
Matt Jankowski 49e2772064
Fix `RSpec/MessageSpies` cop (#27751) 7 months ago
Matt Jankowski 710745e16b
Fix RSpec/ContextWording cop (#24739) 1 year ago
Matt Jankowski 3df665fd23
Fix Lint/ConstantDefinitionInBlock cop (#24763) 1 year ago
Nick Schonning 65ba0d92ef
Enable Rubocop RSpec/NotToNot (#23723) 1 year ago
Nick Schonning ed570050c6
Autofix Rails/EagerEvaluationLogMessage (#23429)
* Autofix Rails/EagerEvaluationLogMessage

* Update spec for debug block syntax
1 year ago
Eugen Rochko 7aaf2b44ec
Fix remote files not using Content-Type header, streaming (#14184) 4 years ago
Eugen Rochko 1b198d6489
Fix trying to write non-existent image remote URL attribute on preview cards (#14181)
Regression from #14145
4 years ago
Eugen Rochko 64aac30733
Add customizable thumbnails for audio and video attachments (#14145)
- Change audio files to not be stripped of metadata
- Automatically extract cover art from audio if it exists
- Add `thumbnail` parameter to `POST /api/v1/media`, `POST /api/v2/media` and `PUT /api/v1/media/:id`
- Add `icon` to represent it in attachments in ActivityPub
- Fix `preview_url` containing URL of missing missing image when there is no thumbnail instead of null
- Fix duration of audio not being displayed on public pages until the file is loaded
4 years ago
Eugen Rochko 354fdd317e
Fix attachment not being re-downloaded even if file is not stored (#12125)
Change the behaviour of remotable concern. Previously, it would skip
downloading an attachment if the stored remote URL is identical to
the new one. Now it would not be skipped if the attachment is not
actually currently stored by Paperclip.
5 years ago
Renato "Lond" Cerqueira 5b2b493a90 Fix nil host in remotable (#8508)
Host can be nil in urls like
'https:https://example.com/path/file.png'
6 years ago
Akihiko Odaki 40e5d2303b Validate HTTP response length while receiving (#6891)
to_s method of HTTP::Response keeps blocking while it receives the whole
content, no matter how it is big. This means it may waste time to receive
unacceptably large files. It may also consume memory and disk in the
process. This solves the inefficency by checking response length while
receiving.
6 years ago
ysksn 6f609dc4b4 Add tests for Remotable (#5768) 7 years ago