0
0
Fork 0

Feature: Unlisted custom emojis (#5485)

This commit is contained in:
nullkal 2017-10-27 23:11:30 +09:00 committed by Eugen Rochko
parent 0cb329f63a
commit 781105293c
9 changed files with 32 additions and 6 deletions

View file

@ -3,7 +3,7 @@
class REST::CustomEmojiSerializer < ActiveModel::Serializer
include RoutingHelper
attributes :shortcode, :url, :static_url
attributes :shortcode, :url, :static_url, :visible_in_picker
def url
full_asset_url(object.image.url)