Commit Graph

8 Commits (dc253ea234d86c3c3360898058261efbfea6f2ed)

Author SHA1 Message Date
Matt Jankowski 3576fa0d59 Improve api oembed controller ()
* Add StreamEntryFinder class to parse URLs

* Use StreamEntryFinder and clean up api/oembed controller
rch850 453fb84c9c Use null as default oEmbed height ()
Height 640 is too big for most toots.
Twitter use null value to support flexible height.
Eugen Rochko 88725d6ce8 OEmbed support for PreviewCard ()
* OEmbed support for PreviewCard

* Improve ProviderDiscovery code failure treatment

* Do not crawl links if there is a content warning, since those
don't display a link card anyway

* Reset db schema

* Fresh migrate

* Fix rubocop style issues
Fix  - return existing access token when applicable instead of creating new

* Fix test

* Extract http client to helper

* Improve oembed controller
alpaca-tc 00392d3c63 ActiveRecord::NotFound is not defined ()
Eugen 1953e3b6ed Fix inflection
Eugen Rochko 5ae1b39ec9 Adjusting public display of statuses to look similar to logged-in UI,
fix  with rich OEmbed display via iframe, fix  by hiding sensitive
content behind a spoiler on public pages
Eugen Rochko aed25932b5 Add OEmbed iframe HTML, convert emojis on public pages, increase size of attachment thumbnails
Eugen Rochko 6ff93845d5 Add basic OEmbed provider API, fix