Normalized data in Redux, fix for asset URLs when rendered outside request
This commit is contained in:
parent
7939a216ff
commit
1022d682dc
9 changed files with 71 additions and 27 deletions
|
@ -4,7 +4,7 @@ Nokogiri::XML::Builder.new do |xml|
|
|||
title xml, @account.display_name
|
||||
subtitle xml, @account.note
|
||||
updated_at xml, stream_updated_at
|
||||
logo xml, asset_url(@account.avatar.url(:medium, false))
|
||||
logo xml, full_asset_url(@account.avatar.url(:medium, false))
|
||||
|
||||
author(xml) do
|
||||
include_author xml, @account
|
||||
|
|
|
@ -3,7 +3,7 @@ object @account
|
|||
attributes :id, :username, :acct, :display_name, :note
|
||||
|
||||
node(:url) { |account| url_for_target(account) }
|
||||
node(:avatar) { |account| asset_url(account.avatar.url(:large, false)) }
|
||||
node(:avatar) { |account| full_asset_url(account.avatar.url(:large, false)) }
|
||||
node(:followers_count) { |account| account.followers.count }
|
||||
node(:following_count) { |account| account.following.count }
|
||||
node(:statuses_count) { |account| account.statuses.count }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue