discourse/app/serializers/emoji_serializer.rb
2020-12-07 13:36:08 +02:00

10 lines
171 B
Ruby

# frozen_string_literal: true
class EmojiSerializer < ApplicationSerializer
attributes :name, :url, :group
def url
Discourse.store.cdn_url(object.url)
end
end