about summary refs log tree commit diff
path: root/app/models/media_attachment.rb
AgeCommit message (Collapse)Author
2020-02-21patch media model from glitch-socmultiple creatures
2020-02-21re-add missing max description length from env varmultiple creatures
2020-02-21port tootsuite#12568 to monsterfork: Add `tootctl media remove-orphans`Eugen Rochko
2020-02-21port tootsuite#12534 to monsterfork: Update ESLint and RuboCop in Code ClimateYamagishi Kazutoshi
2020-02-21remove audio metadata (#12171)Hugo Gameiro
2020-02-21add loglevel fatal to video and audio styles (#12088)Hugo Gameiro
2020-02-21port tootsuite#12057 to monsterfork: Fix performance of GIF re-encodingEugen Rochko
* Change animated GIF detection to not shell out to ImageMagick Signed-off-by: Eugen Rochko <eugen@zeonfederated.com> * Change video encoding parameters to limit to 10800 video frames Signed-off-by: Eugen Rochko <eugen@zeonfederated.com> * Limit GIF image size further Signed-off-by: Eugen Rochko <eugen@zeonfederated.com> * Always strip metadata from video files * Fix code style issues
2020-02-21port tootsuite#11775 to monsterfork: Add retry for failed media downloads ↵Eugen Rochko
and `tootctl media refresh`
2020-02-21port tootsuite#11776 to monsterfork: Change tootctl to use inline ↵Eugen Rochko
parallelization instead of Sidekiq - Remove --background option - Add --concurrency(=5) option - Add progress bars
2020-02-21Add more media formats (#11687)umonaca
* Add more media formats * Removed amr file type
2020-02-21Remove timestamps from converted images to make them deterministic (#11408)Eugen Rochko
2020-02-21port tootsuite#11342 to monsterfork: Add aac, m4a, 3gp to allowed audio formatsEugen Rochko
Fix #11186
2020-02-21port tootsuite#11151 to monsterfork: Fix audio-only OGG and WebM files not ↵Eugen Rochko
being processed as such Also, because Chrome sends audio/mp3 instead of audio/mpeg as it's supposed to, we need to whitelist that mime type as well
2020-02-21Fix audio not being downloaded from remote servers (#11145)Eugen Rochko
2020-02-21Change audio format from ogg to mp3 for wider compatibility (#11141)Eugen Rochko
* Change audio format from ogg to mp3 for wider compatibility * Add media description as title to links of unknown media attachments
2020-02-21port tootsuite#11130 to monsterfork: Fix converted media being saved with ↵Eugen Rochko
original extension and mime type
2020-02-21port tootsuite#11123 to monsterfork: Add audio uploadsEugen Rochko
* Add audio uploads Fix #4827 Accept uploads of OGG, WAV, FLAC, OPUS and MP3 files, and converts them to OGG. Media attachments get a new `audio` type. In the UI, audio uploads are displayed identically to video uploads. * Improve code style
2020-02-21port tootsuite#11589 to monsterfork: Remove WebP supportStanislas
2020-02-21port tootsuite#12262 to monsterfork: Fix remote media descriptions being cut ↵ThibG
off at 420 chars * Fix remote media descriptions being cut off at 420 chars Fixes #12258 * Fix tests
2020-02-21port tootsuite#12562 to monsterfork: Fix media attachments without file ↵Eugen Rochko
being uploadable Fix #12554
2020-02-21port tootsuite#12748 to monsterfork: Fix base64-encoded file uploads not ↵Eugen Rochko
being possible Fix #3804, Fix #5776
2020-02-21port tootsuite#12568 to monsterfork: Add `tootctl media remove-orphans`Eugen Rochko
2020-01-20Original upstream mergeThibG
2019-11-29raise video & audio qualitymultiple creatures
2019-11-29`compand` apparantly screws up dynamic range - get rid of thatmultiple creatures
2019-11-29use static waveform for audio uploads & explicitly accept `audio/mp3`multiple creatures
2019-11-19Added env variables for max image and video size. [Monsterfork: partially ↵Lady Lumb
revert to `glitch-soc` media model] I changed the IMAGE_LIMIT and VIDEO_LIMIT variables to read from the env, or use default if not set in the env, to make it easier to change this on an instance by instance basis and make it persistent across updates.
2019-08-30make sure media attachments are not from a blocked account, CDN, or their ↵multiple creatures
subdomains
2019-08-30re-fetch media when local file is missingmultiple creatures
2019-08-24raise description limit to 6666multiple creatures
2019-07-17add size var to controller fileLumb
Add MAX_SIZE_LIMIT to control image and video size limit to read from env file
2019-05-21stop wasting server resources converting well-supported open video formats ↵multiple creatures
just because a single mobile platform's proprieter wants to be a jerk
2019-05-21Raise maximum attachment size to 66 MiB and maximum standard GIF size to 333 ↵multiple creatures
KiB.
2019-05-21Add support for general-purpose file sharing.multiple creatures
2019-05-21Add support for standard GIFs (under 200 KB)multiple creatures
2019-05-21Handle more audio formats, only converting formats not supported by HTML5 audiomultiple creatures
2019-05-21allow aac audio uploadsmultiple creatures
2019-05-21Plain AAC audio uploads live again. -DTmultiple creatures
2019-05-21Raise description text max lengthDaggertooth
2019-05-21Raise description text max lengthDaggertooth
2019-05-21Allow 4k image uploadsDaggertooth
2019-05-04Merge branch 'master' into glitch-soc/merge-upstreamThibaut Girka
Conflicts: - app/models/media_attachment.rb
2019-04-27Add blurhash (#10630)Eugen Rochko
* Add blurhash * Use fallback color for spoiler when blurhash missing * Federate the blurhash and accept it as long as it's at most 5x5 * Display unknown media attachments as blurhash placeholders * Improve style of embed actions and spoiler button * Change blurhash resolution from 3x3 to 4x4 * Improve dependency definitions * Fix code style issues
2019-02-10Merge branch 'master' into glitch-soc/merge-upstreamThibaut Girka
Conflicts: - app/controllers/oauth/authorized_applications_controller.rb Two changes too close to each other - app/controllers/settings/sessions_controller.rb - app/lib/user_settings_decorator.rb Two changes too close to each other - app/models/media_attachment.rb New changes too close to glitch-soc only changes. - app/models/user.rb Two changes too close to each other. - app/services/remove_status_service.rb Kept direct timeline code which had been removed upstream. - app/views/settings/preferences/show.html.haml Two changes too close to each other. - config/locales/en.yml Introduction of a new string too close to glitch-soc-only's “flavour” - config/locales/ja.yml Introduction of a new string too close to glitch-soc-only's “flavour” - config/locales/pl.yml Introduction of a new string too close to glitch-soc-only's “flavour” - config/locales/simple_form.en.yml Introduction of a new string too close to glitch-soc-only's “skin” - config/locales/simple_form.pl.yml Introduction of a new string too close to glitch-soc-only's “skin” - config/settings.yml Reverted upstream's decision of enabling posting application by default.
2019-02-04Use video filesize limit with gifv (#9924)rinsuki
2019-02-02Add WebP support (#9879)Acid Chicken (硫酸鶏)
* Add WebP support * Remove the changes to the tooltip refs: https://github.com/tootsuite/mastodon/pull/9879#pullrequestreview-199312528
2019-01-10Merge branch 'master' into glitch-soc/merge-upstreamThibaut Girka
Conflicts: - .eslintrc.yml Removed, as upstream removed it. - app/controllers/admin/statuses_controller.rb Minor code cleanup when porting one of our features. - app/models/account.rb Note length validation has changed upstream. We now use upstream's validation (dropped legacy glitch-soc account metadata stuff) but with configurable limit. - app/services/post_status_service.rb Upstream has added support for scheduled toots, refactoring the code a bit. Adapted our changes to this refactoring. - app/views/stream_entries/_detailed_status.html.haml Not a real conflict, changes too close. - app/views/stream_entries/_simple_status.html.haml Not a real conflict, changes too close.
2019-01-05Add scheduled statuses (#9706)Eugen Rochko
Fix #340
2018-11-27Merge branch 'master' into glitch-soc/merge-upstreamThibaut Girka
Conflicts: - app/models/status.rb Resolved by taking both changes (not a real conflict, just changes too close to each other).
2018-11-27add loglevel to ffmpeg in gif upload (#9368)Hugo Gameiro