mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
fix: returns nil instead of empty URL on status.application.website (#17962)
This commit is contained in:
parent
0ec695e036
commit
275dad9702
1 changed files with 4 additions and 0 deletions
|
@ -137,6 +137,10 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||
|
||||
class ApplicationSerializer < ActiveModel::Serializer
|
||||
attributes :name, :website
|
||||
|
||||
def website
|
||||
object.website.presence
|
||||
end
|
||||
end
|
||||
|
||||
class MentionSerializer < ActiveModel::Serializer
|
||||
|
|
Loading…
Reference in a new issue