Add: #510 カスタム絵文字取得APIにライセンス情報を付加 (#720)

This commit is contained in:
KMY(雪あすか) 2024-04-19 08:58:33 +09:00 committed by GitHub
parent 957caea207
commit 3af1b90795
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,7 @@ class REST::CustomEmojiSerializer < REST::CustomEmojiSlimSerializer
# Please update `app/javascript/mastodon/api_types/custom_emoji.ts` when making changes to the attributes # Please update `app/javascript/mastodon/api_types/custom_emoji.ts` when making changes to the attributes
attribute :aliases attribute :aliases
attribute :license
def aliases def aliases
if object.respond_to?(:aliases) && object.aliases.present? if object.respond_to?(:aliases) && object.aliases.present?