mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
DEV: remove user thread count route (#25385)
Removes a now redundant route for the user thread count.
This commit is contained in:
@ -21,11 +21,4 @@ class Chat::Api::CurrentUserThreadsController < Chat::ApiController
|
||||
on_model_not_found(:threads) { render json: success_json.merge(threads: []) }
|
||||
end
|
||||
end
|
||||
|
||||
def thread_count
|
||||
with_service(::Chat::LookupUserThreads) do
|
||||
on_success { render json: success_json.merge(thread_count: result.threads.size) }
|
||||
on_model_not_found(:threads) { render json: success_json.merge(thread_count: 0) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user