Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2021-09-14 13:50:30 +02:00
13 changed files with 376 additions and 388 deletions

View File

@ -40,7 +40,7 @@ class REST::MediaAttachmentSerializer < ActiveModel::Serializer
end
def text_url
object.local? ? medium_url(object) : nil
object.local? && object.shortcode.present? ? medium_url(object) : nil
end
def meta