0
0
Fork 0

Change interaction modal in web UI (#26075)

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
Claire 2023-07-27 16:11:17 +02:00 committed by GitHub
parent 1e4ccc655a
commit b4e739ff0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 682 additions and 1091 deletions

View file

@ -5,7 +5,7 @@ class REST::AccountSerializer < ActiveModel::Serializer
include FormattingHelper
attributes :id, :username, :acct, :display_name, :locked, :bot, :discoverable, :group, :created_at,
:note, :url, :avatar, :avatar_static, :header, :header_static,
:note, :url, :uri, :avatar, :avatar_static, :header, :header_static,
:followers_count, :following_count, :statuses_count, :last_status_at
has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested?
@ -66,6 +66,10 @@ class REST::AccountSerializer < ActiveModel::Serializer
ActivityPub::TagManager.instance.url_for(object)
end
def uri
ActivityPub::TagManager.instance.uri_for(object)
end
def avatar
full_asset_url(object.suspended? ? object.avatar.default_url : object.avatar_original_url)
end