diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-28 21:22:56 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-28 21:22:56 +0100 |
commit | 11ff92c9d7b27c2c9ed86f649aef8d956cc8b989 (patch) | |
tree | a6294bad9352e6f2e181388a33a4b45dcda53319 /app/helpers | |
parent | 47d50b0e3967f1d396bdbe8ea3e8909ce2be599f (diff) |
Adding a test for ReblogService, fixing mentions for remote statuses
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/atom_helper.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/atom_helper.rb b/app/helpers/atom_helper.rb index 0cba8e964..bd7aee9a0 100644 --- a/app/helpers/atom_helper.rb +++ b/app/helpers/atom_helper.rb @@ -1,6 +1,6 @@ module AtomHelper def stream_updated_at - @account.stream_entries.last ? @account.stream_entries.last.created_at : @account.updated_at + @account.stream_entries.last ? (@account.updated_at > @account.stream_entries.last.created_at ? @account.updated_at : @account.stream_entries.last.created_at) : @account.updated_at end def entry(xml, is_root, &block) @@ -126,7 +126,9 @@ module AtomHelper end def link_avatar(xml, account) - xml.link(rel: 'avatar', type: account.avatar_content_type, href: asset_url(account.avatar.url(:large))) + xml.link('rel' => 'avatar', 'type' => account.avatar_content_type, 'media:width' => '300', 'media:height' =>'300', 'href' => asset_url(account.avatar.url(:large))) + xml.link('rel' => 'avatar', 'type' => account.avatar_content_type, 'media:width' => '96', 'media:height' =>'96', 'href' => asset_url(account.avatar.url(:medium))) + xml.link('rel' => 'avatar', 'type' => account.avatar_content_type, 'media:width' => '48', 'media:height' =>'48', 'href' => asset_url(account.avatar.url(:small))) end def logo(xml, url) |