This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-11-30 23:01:03 +01:00
|
|
|
# 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) }
|
2017-04-18 00:16:32 +02:00
|
|
|
node(:provider_name) { site_hostname }
|
2016-11-30 23:01:03 +01:00
|
|
|
node(:provider_url) { root_url }
|
|
|
|
node(:cache_age) { 86_400 }
|
2016-12-18 19:47:11 +01:00
|
|
|
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>" }
|
2016-11-30 23:01:03 +01:00
|
|
|
node(:width) { @width }
|
2016-12-19 09:12:00 +01:00
|
|
|
node(:height) { @height }
|