diff options
author | feld <feld@feld.me> | 2024-08-12 21:27:12 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2024-08-12 21:27:12 +0000 |
commit | f87aa8b83cb5f089a51bf2f5ad065a53f7d30a0b (patch) | |
tree | 667745cc675649a66cc7d6d23e85d165320bec7e /lib | |
parent | c29441f30d0229192868ec4149a46fea562b0997 (diff) | |
parent | c1c0f0b1443aa486f7867b9fa02cc41dbbc74261 (diff) | |
download | pleroma-f87aa8b83cb5f089a51bf2f5ad065a53f7d30a0b.tar.gz pleroma-f87aa8b83cb5f089a51bf2f5ad065a53f7d30a0b.zip |
Merge branch 'deprecate-subscribe' into 'develop'
Mark `/api/v1/pleroma/accounts/:id/subscribe`/`unsubscribe` as deprecated
See merge request pleroma/pleroma!4216
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/pleroma_account_operation.ex | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/operations/pleroma_account_operation.ex b/lib/pleroma/web/api_spec/operations/pleroma_account_operation.ex index 7340653fb..b8b37d7cf 100644 --- a/lib/pleroma/web/api_spec/operations/pleroma_account_operation.ex +++ b/lib/pleroma/web/api_spec/operations/pleroma_account_operation.ex @@ -85,9 +85,11 @@ defmodule Pleroma.Web.ApiSpec.PleromaAccountOperation do def subscribe_operation do %Operation{ + deprecated: true, tags: ["Account actions"], summary: "Subscribe", - description: "Receive notifications for all statuses posted by the account.", + description: + "Receive notifications for all statuses posted by the account. Deprecated, use `notify: true` in follow operation instead.", operationId: "PleromaAPI.AccountController.subscribe", parameters: [id_param()], security: [%{"oAuth" => ["follow", "write:follows"]}], @@ -100,9 +102,11 @@ defmodule Pleroma.Web.ApiSpec.PleromaAccountOperation do def unsubscribe_operation do %Operation{ + deprecated: true, tags: ["Account actions"], summary: "Unsubscribe", - description: "Stop receiving notifications for all statuses posted by the account.", + description: + "Stop receiving notifications for all statuses posted by the account. Deprecated, use `notify: false` in follow operation instead.", operationId: "PleromaAPI.AccountController.unsubscribe", parameters: [id_param()], security: [%{"oAuth" => ["follow", "write:follows"]}], |