diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pleroma/web/api_spec/operations/chat_operation.ex | 14 | ||||
| -rw-r--r-- | lib/pleroma/web/pleroma_api/controllers/chat_controller.ex | 4 | 
2 files changed, 9 insertions, 9 deletions
| diff --git a/lib/pleroma/web/api_spec/operations/chat_operation.ex b/lib/pleroma/web/api_spec/operations/chat_operation.ex index 6ad325113..74c3ad0bd 100644 --- a/lib/pleroma/web/api_spec/operations/chat_operation.ex +++ b/lib/pleroma/web/api_spec/operations/chat_operation.ex @@ -33,7 +33,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do        },        security: [          %{ -          "oAuth" => ["write"] +          "oAuth" => ["write:chats"]          }        ]      } @@ -58,7 +58,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do        },        security: [          %{ -          "oAuth" => ["write"] +          "oAuth" => ["write:chats"]          }        ]      } @@ -120,7 +120,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do        },        security: [          %{ -          "oAuth" => ["write"] +          "oAuth" => ["write:chats"]          }        ]      } @@ -137,7 +137,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do        },        security: [          %{ -          "oAuth" => ["read"] +          "oAuth" => ["read:chats"]          }        ]      } @@ -161,7 +161,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do        },        security: [          %{ -          "oAuth" => ["read"] +          "oAuth" => ["read:chats"]          }        ]      } @@ -187,7 +187,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do        },        security: [          %{ -          "oAuth" => ["write"] +          "oAuth" => ["write:chats"]          }        ]      } @@ -212,7 +212,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do        },        security: [          %{ -          "oAuth" => ["write"] +          "oAuth" => ["write:chats"]          }        ]      } diff --git a/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex b/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex index d6b3415d1..983550b13 100644 --- a/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex +++ b/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex @@ -23,7 +23,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatController do    plug(      OAuthScopesPlug, -    %{scopes: ["write:statuses"]} +    %{scopes: ["write:chats"]}      when action in [             :post_chat_message,             :create, @@ -35,7 +35,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatController do    plug(      OAuthScopesPlug, -    %{scopes: ["read:statuses"]} when action in [:messages, :index, :show] +    %{scopes: ["read:chats"]} when action in [:messages, :index, :show]    )    plug(OpenApiSpex.Plug.CastAndValidate, render_error: Pleroma.Web.ApiSpec.RenderError) | 
