diff options
author | lain <lain@soykaf.club> | 2019-08-14 15:55:43 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-08-14 15:55:43 +0200 |
commit | df81abb68c46e36dfb2af7aab77e0e57a1a1eb28 (patch) | |
tree | 51bd7a7fbac0bda1069eac5b44063bf786553d9d | |
parent | 560dbad538ba978d00116b1b037502ba2185cb5e (diff) | |
download | pleroma-df81abb68c46e36dfb2af7aab77e0e57a1a1eb28.tar.gz |
Conversations: Use correct oauth paths for extended api.
-rw-r--r-- | lib/pleroma/web/router.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 9759268f9..1eb6f7b9d 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -263,9 +263,13 @@ defmodule Pleroma.Web.Router do pipe_through(:authenticated_api) scope [] do - pipe_through(:oauth_write) + pipe_through(:oauth_read) get("/conversations/:id/statuses", PleromaAPIController, :conversation_statuses) get("/conversations/:id", PleromaAPIController, :conversation) + end + + scope [] do + pipe_through(:oauth_write) patch("/conversations/:id", PleromaAPIController, :update_conversation) end end |