mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
REFACTOR: Change watch
wording to unignore
(#7112)
* REFACTOR: Change `watch` wording to `unignore`
This commit is contained in:
@ -14,7 +14,7 @@ class UsersController < ApplicationController
|
||||
:pick_avatar, :destroy_user_image, :destroy, :check_emails,
|
||||
:topic_tracking_state, :preferences, :create_second_factor,
|
||||
:update_second_factor, :create_second_factor_backup, :select_avatar,
|
||||
:ignore, :watch, :revoke_auth_token
|
||||
:ignore, :unignore, :revoke_auth_token
|
||||
]
|
||||
|
||||
skip_before_action :check_xhr, only: [
|
||||
@ -1004,7 +1004,7 @@ class UsersController < ApplicationController
|
||||
render json: success_json
|
||||
end
|
||||
|
||||
def watch
|
||||
def unignore
|
||||
raise Discourse::NotFound unless SiteSetting.ignore_user_enabled
|
||||
|
||||
IgnoredUser.where(user: current_user, ignored_user_id: params[:ignored_user_id]).delete_all
|
||||
|
Reference in New Issue
Block a user