From 5543fd53400037dc8ae22d4919b7085c46177ce1 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 9 Sep 2024 18:07:25 +0200 Subject: [feature/frontend] Add options to include Unlisted posts or hide all posts (#3272) * [feature/frontend] Add options to include Unlisted posts or hide all posts * finish up * swagger * move invalidate call into bundb package, avoid invalidating if not necessary * rename show_web_statuses => web_visibility * don't use ptr for webvisibility * last bits --- docs/api/swagger.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/api') diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 8d11ba7da..07c939188 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -157,6 +157,14 @@ definitions: description: The default posting content type for new statuses. type: string x-go-name: StatusContentType + web_visibility: + description: |- + Visibility level(s) of posts to show for this account via the web api. + "public" = default, show only Public visibility posts on the web. + "unlisted" = show Public *and* Unlisted visibility posts on the web. + "none" = show no posts on the web, not even Public ones. + type: string + x-go-name: WebVisibility title: Source represents display or publishing preferences of user's own account. type: object x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model @@ -4400,6 +4408,14 @@ paths: in: formData name: hide_collections type: boolean + - description: |- + Posts to show on the web view of the account. + "public": default, show only Public visibility posts on the web. + "unlisted": show Public *and* Unlisted visibility posts on the web. + "none": show no posts on the web, not even Public ones. + in: formData + name: web_visibility + type: string - description: Name of 1st profile field to be added to this account's profile. (The index may be any string; add more indexes to send more fields.) in: formData name: fields_attributes[0][name] -- cgit v1.2.3