]> cat aescling's git repositories - mastodon.git/commit
Add blurhash (#10630)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 27 Apr 2019 01:24:09 +0000 (03:24 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2019 01:24:09 +0000 (03:24 +0200)
commitfba96c808d25d2fc35ec63ee6745a1e55a95d707
tree01b9427a5d22fbedf92de37df0488aacb55b7fdc
parentc008911249a2fc0efaf22b83e51ea8510e67acac
Add blurhash (#10630)

* 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
22 files changed:
Gemfile
Gemfile.lock
app/javascript/mastodon/components/media_gallery.js
app/javascript/mastodon/components/status.js
app/javascript/mastodon/features/report/components/status_check_box.js
app/javascript/mastodon/features/status/components/detailed_status.js
app/javascript/mastodon/features/ui/components/media_modal.js
app/javascript/mastodon/features/ui/components/video_modal.js
app/javascript/mastodon/features/video/index.js
app/javascript/styles/mastodon/components.scss
app/lib/activitypub/activity/create.rb
app/lib/activitypub/adapter.rb
app/models/media_attachment.rb
app/serializers/activitypub/note_serializer.rb
app/serializers/rest/media_attachment_serializer.rb
app/views/stream_entries/_detailed_status.html.haml
app/views/stream_entries/_simple_status.html.haml
db/migrate/20190420025523_add_blurhash_to_media_attachments.rb [new file with mode: 0644]
db/schema.rb
lib/paperclip/blurhash_transcoder.rb [new file with mode: 0644]
package.json
yarn.lock