mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 01:05:53 +03:00
61a2b91f45
* Implement client-side v1 filters * Exclude linter false positives * Update test/envparsing.sh * Fix minor Swagger, style, and Bun usage issues * Regenerate Swagger * De-generify filter keywords * Remove updating filter statuses This is an operation that the Mastodon v2 filter API doesn't actually have, because filter statuses, unlike keywords, don't have options: the only info they contain is the status ID to be filtered. * Add a test for filter statuses specifically * De-generify filter statuses * Inline FilterEntry * Use vertical style for Bun operations consistently * Add comment on Filter DB interface * Remove GoLand linter control comments Our existing linters should catch these, or they don't matter very much * Reduce memory ratio for filters
69 lines
2.9 KiB
Go
69 lines
2.9 KiB
Go
// GoToSocial
|
|
// Copyright (C) GoToSocial Authors admin@gotosocial.org
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
// GoToSocial Swagger documentation.
|
|
//
|
|
// Schemes: https, http
|
|
// BasePath: /
|
|
// Version: REPLACE_ME
|
|
// Host: example.org
|
|
// License: AGPL3 https://www.gnu.org/licenses/agpl-3.0.en.html
|
|
// Contact: GoToSocial Authors <admin@gotosocial.org>
|
|
//
|
|
// SecurityDefinitions:
|
|
// OAuth2 Bearer:
|
|
// type: oauth2
|
|
// flow: accessCode
|
|
// authorizationUrl: https://example.org/oauth/authorize
|
|
// tokenUrl: https://example.org/oauth/token
|
|
// scopes:
|
|
// read: grants read access to everything
|
|
// read:accounts: grants read access to accounts
|
|
// read:blocks: grant read access to blocks
|
|
// read:custom_emojis: grant read access to custom_emojis
|
|
// read:favourites: grant read access to favourites
|
|
// read:filters: grant read access to filters
|
|
// read:follows: grant read access to follows
|
|
// read:lists: grant read access to lists
|
|
// read:media: grant read access to media
|
|
// read:mutes: grant read access to mutes
|
|
// read:search: grant read access to searches
|
|
// read:statuses: grants read access to statuses
|
|
// read:streaming: grants read access to streaming api
|
|
// read:user: grants read access to user-level info
|
|
// read:notifications: grants read access to notifications
|
|
// write: grants write access to everything
|
|
// write:accounts: grants write access to accounts
|
|
// write:blocks: grants write access to blocks
|
|
// write:filters: grants write access to filters
|
|
// write:follows: grants write access to follows
|
|
// write:lists: grants write access to lists
|
|
// write:media: grants write access to media
|
|
// write:mutes: grants write access to mutes
|
|
// write:statuses: grants write access to statuses
|
|
// write:user: grants write access to user-level info
|
|
// admin: grants admin access to everything
|
|
// admin:accounts: grants admin access to accounts
|
|
// OAuth2 Application:
|
|
// type: oauth2
|
|
// flow: application
|
|
// tokenUrl: https://example.org/oauth/token
|
|
// scopes:
|
|
// write:accounts: grants write access to accounts
|
|
//
|
|
// swagger:meta
|
|
package docs
|