Files
discourse/app/serializers/emoji_serializer.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
207 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2014-12-23 01:12:26 +01:00
class EmojiSerializer < ApplicationSerializer
attributes :name, :url, :group
2020-12-07 13:36:08 +02:00
def url
return nil if object.url.blank?
2020-12-07 13:36:08 +02:00
Discourse.store.cdn_url(object.url)
end
2014-12-23 01:12:26 +01:00
end