mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
14 lines
326 B
Ruby
14 lines
326 B
Ruby
# name: emoji
|
|
# about: emoji support for Discourse
|
|
# version: 0.1
|
|
# authors: Sam Saffron, Robin Ward
|
|
|
|
register_asset('javascripts/emoji.js.erb', :server_side)
|
|
register_asset('stylesheets/emoji.css')
|
|
|
|
after_initialize do
|
|
|
|
# whitelist emojis so that new user can post emojis
|
|
Post::white_listed_image_classes << "emoji"
|
|
|
|
end
|