From 1022d682dc915bcbf3076c0280f29472068830bb Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 4 Sep 2016 14:04:26 +0200 Subject: Normalized data in Redux, fix for asset URLs when rendered outside request --- app/views/api/accounts/show.rabl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/api') diff --git a/app/views/api/accounts/show.rabl b/app/views/api/accounts/show.rabl index 05c92c99d..4f7cee680 100644 --- a/app/views/api/accounts/show.rabl +++ b/app/views/api/accounts/show.rabl @@ -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 } -- cgit