mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:21:23 +08:00
FEATURE: user status emoji (#17025)
This commit is contained in:

committed by
GitHub

parent
0b8e6adabe
commit
033f72c65f
@ -5,9 +5,10 @@ class UserStatusController < ApplicationController
|
||||
|
||||
def set
|
||||
ensure_feature_enabled
|
||||
raise Discourse::InvalidParameters.new(:description) if params[:description].blank?
|
||||
description = params.require(:description)
|
||||
emoji = params.require(:emoji)
|
||||
|
||||
current_user.set_status!(params[:description])
|
||||
current_user.set_status!(description, emoji)
|
||||
render json: success_json
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user