]> cat aescling's git repositories - mastodon.git/commit
Update status embeds (#4742)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 30 Aug 2017 08:23:43 +0000 (10:23 +0200)
committerGitHub <noreply@github.com>
Wed, 30 Aug 2017 08:23:43 +0000 (10:23 +0200)
commite95bdec7c5da63930fc2e08e67e4358fec19296d
treee586a3f4de5730387d33bf7108bce1b00a761595
parentfcca31350d05064a117c5f1c1b014875dc12afd3
Update status embeds (#4742)

- Use statuses controller for embeds instead of stream entries controller
- Prefer /@:username/:id/embed URL for embeds
- Use /@:username as author_url in OEmbed
- Add follow link to embeds which opens web intent in new window
- Use redis cache in development
- Cache entire embed
15 files changed:
app/controllers/api/oembed_controller.rb
app/controllers/statuses_controller.rb
app/controllers/stream_entries_controller.rb
app/helpers/stream_entries_helper.rb
app/javascript/packs/public.js
app/javascript/styles/stream_entries.scss
app/lib/status_finder.rb [moved from app/lib/stream_entry_finder.rb with 76% similarity]
app/serializers/oembed_serializer.rb
app/views/stream_entries/_detailed_status.html.haml
app/views/stream_entries/embed.html.haml
config/brakeman.ignore
config/environments/development.rb
config/routes.rb
spec/controllers/stream_entries_controller_spec.rb
spec/lib/status_finder_spec.rb [moved from spec/lib/stream_entry_finder_spec.rb with 75% similarity]