]> cat aescling's git repositories - mastodon.git/commit
Add gif auto-play/pause preference
authorPatrick Figel <patrick@figel.email>
Mon, 17 Apr 2017 10:14:03 +0000 (12:14 +0200)
committerPatrick Figel <patrick@figel.email>
Mon, 17 Apr 2017 10:14:03 +0000 (12:14 +0200)
commitffb99325cafb5b00ee652c6b3ed2811a4d643fc8
treef2497c652aaffc64e84f7156c2cdaf2559d029f1
parent1955a3f4448e1a13898c10a89e681395d6748ec3
Add gif auto-play/pause preference

This introduces a new per-user preference called
"Auto-play animated GIFs", which is enabled by default. When a
user disables this setting, gifs in toots become click-to-play.

Previews of animated gifs were changed to display the video play
button so that users can distinguish them from regular images.

This setting also affects account avatars in the detailed account
view, which was changed to use the same hover-to-play mechanism
that is used for animated avatars in timelines.

Fixes #1652
12 files changed:
app/assets/javascripts/components/components/media_gallery.jsx
app/assets/javascripts/components/components/status.jsx
app/assets/javascripts/components/containers/status_container.jsx
app/assets/javascripts/components/features/account/components/header.jsx
app/assets/javascripts/components/features/status/components/detailed_status.jsx
app/assets/javascripts/components/features/status/index.jsx
app/controllers/settings/preferences_controller.rb
app/models/user.rb
app/views/home/initial_state.json.rabl
app/views/settings/preferences/show.html.haml
config/locales/simple_form.en.yml
config/settings.yml