fix: returns nil instead of empty URL on status.application.website (#17962)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user