Update profile information and download avatar of remote accounts

This commit is contained in:
Eugen Rochko
2016-02-28 14:26:26 +01:00
parent 2825991e09
commit ad5ae3f60e
9 changed files with 87 additions and 18 deletions

View File

@ -4,12 +4,13 @@ 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))
author(xml) do
include_author xml, @account
end
link_alternate xml, profile_url(name: @account.username)
link_alternate xml, profile_url(@account)
link_self xml, atom_user_stream_url(id: @account.id)
link_hub xml, HUB_URL
link_salmon xml, salmon_url(@account)

View File

@ -7,4 +7,4 @@
%span.num= status.favourites.count
- if status.reply?
= link_to 'View conversation', status_url(status.thread), class: 'conversation-link'
= link_to "In response to #{status.thread.account.acct}", status_url(status.thread), class: 'conversation-link'