mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 01:52:26 -05:00
[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
This commit is contained in:
parent
7785fa54da
commit
5543fd5340
24 changed files with 523 additions and 161 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue