mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: User Status API (#19149)
This adds API scope for the user status. This also adds a get method to the user status controller. We didn't need a dedicated method that returns status before because the server returns status with user objects, but I think we need to provide this method for API clients.
This commit is contained in:
committed by
GitHub
parent
9e42473af4
commit
6357a3ce33
@@ -4518,6 +4518,9 @@ en:
|
||||
anonymize: Anonymize user accounts.
|
||||
delete: Delete user accounts.
|
||||
list: Get a list of users.
|
||||
user_status:
|
||||
read: Read user status.
|
||||
update: Update user status.
|
||||
email:
|
||||
receive_emails: Combine this scope with the mail-receiver to process incoming emails.
|
||||
badges:
|
||||
|
||||
@@ -1037,6 +1037,7 @@ Discourse::Application.routes.draw do
|
||||
post "/presence/update" => "presence#update"
|
||||
get "/presence/get" => "presence#get"
|
||||
|
||||
get "user-status" => "user_status#get"
|
||||
put "user-status" => "user_status#set"
|
||||
delete "user-status" => "user_status#clear"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user