mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
fix: returns nil instead of empty URL on status.application.website (#17962)
This commit is contained in:
parent
0ec695e036
commit
275dad9702
@ -137,6 +137,10 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||||||
|
|
||||||
class ApplicationSerializer < ActiveModel::Serializer
|
class ApplicationSerializer < ActiveModel::Serializer
|
||||||
attributes :name, :website
|
attributes :name, :website
|
||||||
|
|
||||||
|
def website
|
||||||
|
object.website.presence
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class MentionSerializer < ActiveModel::Serializer
|
class MentionSerializer < ActiveModel::Serializer
|
||||||
|
Loading…
Reference in New Issue
Block a user