Commit Graph

3 Commits (8c5116fa2c197f61aa34e3d1f7f7a11631ec2e0a)

Author SHA1 Message Date
Shuhei Kitagawa 22caa32ba2 Add tests for embeds controller ()
* Small refactoring of status_finder_spec

* Add tests for embeds_controller
unarist 6a4e2db661 Raise an error for remote url in StatusFinder ()
* Raise an error for remote url in StatusFinder

Previous implementation had allowed remote url with status id which also exists on local.

Then that bug leads /api/web/embed to return wrong embed url.

* Fix oembed_controller_spec
Eugen Rochko e95bdec7c5 Update status embeds ()
- 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