Remove: #602 他のサーバーが絵文字リアクションに対応しているかを取得するAPIの仕様変更に伴い、旧APIを削除 (#783)

This commit is contained in:
KMY(雪あすか) 2024-07-18 08:20:56 +09:00 committed by GitHub
parent 513f1d1921
commit 79b80f039c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 7 deletions

View file

@ -48,7 +48,6 @@ export interface ApiAccountJSON {
discoverable: boolean; discoverable: boolean;
indexable: boolean; indexable: boolean;
display_name: string; display_name: string;
emoji_reaction_available_server: boolean;
emojis: ApiCustomEmojiJSON[]; emojis: ApiCustomEmojiJSON[];
fields: ApiAccountFieldJSON[]; fields: ApiAccountFieldJSON[];
followers_count: number; followers_count: number;

View file

@ -102,7 +102,6 @@ export const accountDefaultValues: AccountShape = {
display_name: '', display_name: '',
display_name_html: '', display_name_html: '',
server_features: AccountServerFeaturesFactory(), server_features: AccountServerFeaturesFactory(),
emoji_reaction_available_server: false,
emojis: List<CustomEmoji>(), emojis: List<CustomEmoji>(),
fields: List<AccountField>(), fields: List<AccountField>(),
group: false, group: false,

View file

@ -7,7 +7,7 @@ class REST::AccountSerializer < ActiveModel::Serializer
# Please update `app/javascript/mastodon/api_types/accounts.ts` when making changes to the attributes # Please update `app/javascript/mastodon/api_types/accounts.ts` when making changes to the attributes
attributes :id, :username, :acct, :display_name, :locked, :bot, :discoverable, :indexable, :group, :created_at, attributes :id, :username, :acct, :display_name, :locked, :bot, :discoverable, :indexable, :group, :created_at,
:note, :url, :uri, :avatar, :avatar_static, :header, :header_static, :subscribable, :emoji_reaction_available_server, :note, :url, :uri, :avatar, :avatar_static, :header, :header_static, :subscribable,
:followers_count, :following_count, :statuses_count, :last_status_at, :hide_collections, :other_settings, :noindex, :followers_count, :following_count, :statuses_count, :last_status_at, :hide_collections, :other_settings, :noindex,
:server_features :server_features
@ -120,10 +120,6 @@ class REST::AccountSerializer < ActiveModel::Serializer
object.unavailable? ? false : object.indexable object.unavailable? ? false : object.indexable
end end
def emoji_reaction_available_server
server_features[:emoji_reaction]
end
def server_features def server_features
InstanceInfo.available_features(object.domain) InstanceInfo.available_features(object.domain)
end end