diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-08 14:51:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-08 14:51:05 +0200 |
commit | 864e3f8d9ca652e10a28bddbb0d0df629d2849d4 (patch) | |
tree | 3fb2f9c97fca49cc467622ab532252f8044146f6 /app/views/api/oembed | |
parent | 102466ac5842b20f32a9c5e2fa3f35414c34574b (diff) |
Replace OEmbed and initial state Rabl templates with serializers (#4110)
* Replace OEmbed Rabl template with serializer * Replace initial state rabl with serializer
Diffstat (limited to 'app/views/api/oembed')
-rw-r--r-- | app/views/api/oembed/show.json.rabl | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/views/api/oembed/show.json.rabl b/app/views/api/oembed/show.json.rabl deleted file mode 100644 index 11dcec538..000000000 --- a/app/views/api/oembed/show.json.rabl +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true -object @stream_entry - -node(:type) { 'rich' } -node(:version) { '1.0' } -node(:title, &:title) -node(:author_name) { |entry| entry.account.display_name.blank? ? entry.account.username : entry.account.display_name } -node(:author_url) { |entry| account_url(entry.account) } -node(:provider_name) { site_hostname } -node(:provider_url) { root_url } -node(:cache_age) { 86_400 } -node(:html) { |entry| "<iframe src=\"#{embed_account_stream_entry_url(entry.account, entry)}\" style=\"width: 100%; overflow: hidden\" frameborder=\"0\" width=\"#{@width}\" height=\"#{@height}\" scrolling=\"no\"></iframe>" } -node(:width) { @width } -node(:height) { @height } |