Improve public account cards (#6559)
- Add follow/unfollow/remote follow buttons - Format the bio properly - Always show username@domain, even for local accounts
This commit is contained in:
parent
c33931b613
commit
18513a978a
6 changed files with 73 additions and 51 deletions
|
@ -7,7 +7,9 @@ class FollowerAccountsController < ApplicationController
|
|||
@follows = Follow.where(target_account: @account).recent.page(params[:page]).per(FOLLOW_PER_PAGE).preload(:account)
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.html do
|
||||
@relationships = AccountRelationshipsPresenter.new(@follows.map(&:account_id), current_user.account_id) if user_signed_in?
|
||||
end
|
||||
|
||||
format.json do
|
||||
render json: collection_presenter,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue