mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 02:23:44 +08:00
cfc23c43e9
* Adds emoji column for creator username
15 lines
266 B
Ruby
15 lines
266 B
Ruby
# frozen_string_literal: true
|
|
|
|
class EmojiSerializer < ApplicationSerializer
|
|
attributes :name, :url, :group, :created_by
|
|
|
|
def created_by
|
|
object.created_by
|
|
end
|
|
|
|
def url
|
|
return nil if object.url.blank?
|
|
Discourse.store.cdn_url(object.url)
|
|
end
|
|
end
|