mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 12:42:25 -05:00 
			
		
		
		
	[feature] Move to code.superseriousbusiness.org
This commit is contained in:
		
					parent
					
						
							
								e99ff1eded
							
						
					
				
			
			
				commit
				
					
						b34ffc77ff
					
				
			
		
					 1195 changed files with 4921 additions and 4918 deletions
				
			
		
							
								
								
									
										20
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								README.md
									
										
									
									
									
								
							|  | @ -15,7 +15,7 @@ With GoToSocial, you can keep in touch with your friends, post, read, and share | |||
| 
 | ||||
| Documentation is at [docs.gotosocial.org](https://docs.gotosocial.org). You can skip straight to the API documentation [here](https://docs.gotosocial.org/en/latest/api/swagger/). | ||||
| 
 | ||||
| To build from source, check the [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md) file. | ||||
| To build from source, check the [CONTRIBUTING.md](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md) file. | ||||
| 
 | ||||
| Here's a screenshot of the instance landing page! Check out the project's [official account](https://gts.superseriousbusiness.org/@gotosocial) running on GoToSocial. | ||||
| 
 | ||||
|  | @ -101,7 +101,7 @@ It began as a solo project, and then picked up steam as more developers became i | |||
| 
 | ||||
| We made our first Alpha release in November 2021. We left Alpha and entered Beta in September/October 2024. | ||||
| 
 | ||||
| For a detailed view on what's implemented and what's not, and progress made towards [stable release](https://en.wikipedia.org/wiki/Software_release_life_cycle#Stable_release), please see [the roadmap document](https://github.com/superseriousbusiness/gotosocial/blob/main/ROADMAP.md). | ||||
| For a detailed view on what's implemented and what's not, and progress made towards [stable release](https://en.wikipedia.org/wiki/Software_release_life_cycle#Stable_release), please see [the roadmap document](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/ROADMAP.md). | ||||
| 
 | ||||
| --- | ||||
| 
 | ||||
|  | @ -343,7 +343,7 @@ Snapshot binary releases in the S3 bucket are keyed by Github commit hash. To ge | |||
| 
 | ||||
| ### From Source | ||||
| 
 | ||||
| Instructions for building GoToSocial from source are in the [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md) file. | ||||
| Instructions for building GoToSocial from source are in the [CONTRIBUTING.md](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md) file. | ||||
| 
 | ||||
| ### Third-party Packaging | ||||
| 
 | ||||
|  | @ -364,7 +364,7 @@ You can also deploy your own instance of GoToSocial with the help of: | |||
| 
 | ||||
| ## Contributing | ||||
| 
 | ||||
| You would like to contribute to GtS? Great! ❤️❤️❤️ Check out the issues page to see if there's anything you intend to jump in on, and read the [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md) file for guidelines and setting up your dev environment. | ||||
| You would like to contribute to GtS? Great! ❤️❤️❤️ Check out the issues page to see if there's anything you intend to jump in on, and read the [CONTRIBUTING.md](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md) file for guidelines and setting up your dev environment. | ||||
| 
 | ||||
| --- | ||||
| 
 | ||||
|  | @ -454,10 +454,10 @@ Sloth logo by [Anna Abramek](https://abramek.art/). | |||
| 
 | ||||
| The Creative Commons Attribution-ShareAlike 4.0 International License license applies specifically to the following files and subdirectories of this repository: | ||||
| 
 | ||||
| - [sloth logo png](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.png) | ||||
| - [sloth logo webp](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.webp) | ||||
| - [sloth logo svg](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.svg) | ||||
| - [all default avatars](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/default_avatars) | ||||
| - [sloth logo png](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.png) | ||||
| - [sloth logo webp](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.webp) | ||||
| - [sloth logo svg](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.svg) | ||||
| - [all default avatars](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/default_avatars) | ||||
| 
 | ||||
| Under the terms of the license, you are free to: | ||||
| 
 | ||||
|  | @ -515,7 +515,7 @@ If after reading this you are still interested in supporting us, that is wonderf | |||
| 
 | ||||
| <img src="https://nlnet.nl/logo/NGI/NGIZero-green.hex.svg" width="75" alt="NGIZero logo"/> | ||||
| 
 | ||||
| Combined with the above crowdfunding sources, 2023 Alpha development of GoToSocial was funded by a 50,000 EUR grant from the [NGI0 Entrust Fund](https://nlnet.nl/entrust/), via [NLnet](https://nlnet.nl/). See [here](https://nlnet.nl/project/GoToSocial/#ack) for more details. The successful grant application is archived [here](https://github.com/superseriousbusiness/gotosocial/blob/main/archive/nlnet/2022-next-generation-internet-zero.md). | ||||
| Combined with the above crowdfunding sources, 2023 Alpha development of GoToSocial was funded by a 50,000 EUR grant from the [NGI0 Entrust Fund](https://nlnet.nl/entrust/), via [NLnet](https://nlnet.nl/). See [here](https://nlnet.nl/project/GoToSocial/#ack) for more details. The successful grant application is archived [here](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/archive/nlnet/2022-next-generation-internet-zero.md). | ||||
| 
 | ||||
| 2024 Beta development of GoToSocial is being funded by an additional 50,000 EUR grant from the [NGI0 Entrust Fund](https://nlnet.nl/entrust/), via [NLnet](https://nlnet.nl/). | ||||
| 
 | ||||
|  | @ -525,7 +525,7 @@ Combined with the above crowdfunding sources, 2023 Alpha development of GoToSoci | |||
| 
 | ||||
|  | ||||
| 
 | ||||
| GoToSocial is free software, licensed under the [GNU AGPL v3 LICENSE](https://github.com/superseriousbusiness/gotosocial/blob/main/LICENSE). We encourage forking and changing the code, hacking around with it, and experimenting. | ||||
| GoToSocial is free software, licensed under the [GNU AGPL v3 LICENSE](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/LICENSE). We encourage forking and changing the code, hacking around with it, and experimenting. | ||||
| 
 | ||||
| See [here](https://www.gnu.org/licenses/why-affero-gpl.html) for the differences between AGPL versus GPL licensing, and [here](https://www.gnu.org/licenses/gpl-faq.html) for FAQ's about GPL licenses, including the AGPL. | ||||
| 
 | ||||
|  |  | |||
|  | @ -20,7 +20,7 @@ GtS emphasizes user safety and privacy. Unlike other AP servers, it always requi | |||
| 
 | ||||
| GtS values ease of deployment and maintenance; this means low system requirements, simple configuration, minimal external dependencies, and clear documentation. GtS makes it easy + affordable for self-hosting newcomers to set up a Fediverse server on low- (or even solar-) powered equipment they might have lying around at home. | ||||
| 
 | ||||
| GtS began development in Feb 2021. It is still in Alpha, and we hope to use NLNet funding to bring it up to the Beta phase. The project roadmap (https://github.com/superseriousbusiness/gotosocial/blob/main/ROADMAP.md) gives more information on what we have planned. | ||||
| GtS began development in Feb 2021. It is still in Alpha, and we hope to use NLNet funding to bring it up to the Beta phase. The project roadmap (https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/ROADMAP.md) gives more information on what we have planned. | ||||
| 
 | ||||
| > Have you been involved with projects or organisations relevant to this project before? And if so, can you tell us a bit about your contributions? (Optional) This can help us determine if you are the right person to undertake this effort. | ||||
| 
 | ||||
|  | @ -45,7 +45,7 @@ Aside from GoToSocial, I've also made small PRs upstream to the ActivityPub libr | |||
| 
 | ||||
| Currently, GoToSocial receives about €22/week from LiberaPay donations - https://liberapay.com/gotosocial. I have been paying my own costs for working on the project from my savings, which is unfortunately not sustainable for a lot longer. | ||||
| 
 | ||||
| The requested NLNet budget will be used to fund the remaining Alpha portion of development, and bring GoToSocial into the Beta phase (see the roadmap - https://github.com/superseriousbusiness/gotosocial/blob/main/ROADMAP.md). In practical terms, this means paying myself to work full time on the project for one year, and paying for contributions from other developers as well. | ||||
| The requested NLNet budget will be used to fund the remaining Alpha portion of development, and bring GoToSocial into the Beta phase (see the roadmap - https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/ROADMAP.md). In practical terms, this means paying myself to work full time on the project for one year, and paying for contributions from other developers as well. | ||||
| 
 | ||||
| To pay my living costs + rent I need to make about €2,000/month after tax, working full time. In Belgium, that equates to about €3,000/month, which is €36,000 for one year of work. Naively calculated at 40 hours / week, that's €18.75 per hour. | ||||
| 
 | ||||
|  |  | |||
|  | @ -17,6 +17,6 @@ | |||
| 
 | ||||
| package main | ||||
| 
 | ||||
| import "github.com/superseriousbusiness/gotosocial/internal/id" | ||||
| import "code.superseriousbusiness.org/gotosocial/internal/id" | ||||
| 
 | ||||
| func main() { println(id.NewULID()) } | ||||
|  |  | |||
|  | @ -24,14 +24,14 @@ import ( | |||
| 	"text/tabwriter" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/bundb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/validate" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db/bundb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/validate" | ||||
| 	"golang.org/x/crypto/bcrypt" | ||||
| ) | ||||
| 
 | ||||
|  |  | |||
|  | @ -25,14 +25,14 @@ import ( | |||
| 	"os" | ||||
| 	"path" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/bundb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/paging" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db/bundb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/paging" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| ) | ||||
| 
 | ||||
| type list struct { | ||||
|  |  | |||
|  | @ -20,10 +20,10 @@ package prune | |||
| import ( | ||||
| 	"context" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtscontext" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtscontext" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| ) | ||||
| 
 | ||||
| // All performs all media clean actions | ||||
|  |  | |||
|  | @ -21,13 +21,13 @@ import ( | |||
| 	"context" | ||||
| 	"fmt" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/cleaner" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/bundb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	gtsstorage "github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/cleaner" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db/bundb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	gtsstorage "code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| ) | ||||
| 
 | ||||
| type prune struct { | ||||
|  |  | |||
|  | @ -20,10 +20,10 @@ package prune | |||
| import ( | ||||
| 	"context" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtscontext" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtscontext" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| ) | ||||
| 
 | ||||
| // Orphaned prunes orphaned media from storage. | ||||
|  |  | |||
|  | @ -21,10 +21,10 @@ import ( | |||
| 	"context" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtscontext" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtscontext" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| ) | ||||
| 
 | ||||
| // Remote prunes old and/or unused remote media. | ||||
|  |  | |||
|  | @ -22,11 +22,11 @@ import ( | |||
| 	"errors" | ||||
| 	"fmt" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/bundb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/trans" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db/bundb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/trans" | ||||
| ) | ||||
| 
 | ||||
| // Export exports info from the database into a file | ||||
|  |  | |||
|  | @ -22,11 +22,11 @@ import ( | |||
| 	"errors" | ||||
| 	"fmt" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/bundb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/trans" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db/bundb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/trans" | ||||
| ) | ||||
| 
 | ||||
| // Import imports info from a file into the database | ||||
|  |  | |||
|  | @ -22,8 +22,8 @@ import ( | |||
| 	"encoding/json" | ||||
| 	"os" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| ) | ||||
| 
 | ||||
| // Config just prints the collated config out to stdout as json. | ||||
|  |  | |||
|  | @ -30,41 +30,41 @@ import ( | |||
| 	"syscall" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/admin" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api" | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/cleaner" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db/bundb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/email" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/federation" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/federation/federatingdb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/filter/interaction" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/filter/spam" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/filter/visibility" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/httpclient" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media/ffmpeg" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/messages" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/middleware" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oauth" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oauth/handlers" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/observability" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oidc" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/router" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	gtsstorage "code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/subscriptions" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/transport" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/typeutils" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/web" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/webpush" | ||||
| 	"github.com/KimMachineGun/automemlimit/memlimit" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/admin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/cleaner" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/bundb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/email" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/federation" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/filter/interaction" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/filter/spam" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/filter/visibility" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/httpclient" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/messages" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/middleware" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oauth" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oauth/handlers" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/observability" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oidc" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/router" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	gtsstorage "github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/subscriptions" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/transport" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/typeutils" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/web" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/webpush" | ||||
| 	"go.uber.org/automaxprocs/maxprocs" | ||||
| ) | ||||
| 
 | ||||
|  |  | |||
|  | @ -19,7 +19,7 @@ | |||
| 
 | ||||
| package testrig | ||||
| 
 | ||||
| import "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| import "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 
 | ||||
| // Start creates and starts a gotosocial testrig server. | ||||
| // This is only enabled in debug builds, else is nil. | ||||
|  |  | |||
|  | @ -28,26 +28,27 @@ import ( | |||
| 	"os/signal" | ||||
| 	"syscall" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/admin" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api" | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/cleaner" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/filter/visibility" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/language" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/middleware" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/observability" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oidc" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/router" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/subscriptions" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/typeutils" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/web" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/admin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/cleaner" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/language" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/middleware" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/observability" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oidc" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/router" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/subscriptions" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/typeutils" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/web" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| // Start creates and starts a gotosocial testrig server. | ||||
|  |  | |||
|  | @ -18,12 +18,12 @@ | |||
| package main | ||||
| 
 | ||||
| import ( | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/admin/account" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/admin/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/admin/media/prune" | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/admin/trans" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"github.com/spf13/cobra" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/admin/account" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/admin/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/admin/media/prune" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/admin/trans" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| ) | ||||
| 
 | ||||
| func adminCommands() *cobra.Command { | ||||
|  |  | |||
|  | @ -21,10 +21,10 @@ import ( | |||
| 	"context" | ||||
| 	"fmt" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"github.com/spf13/cobra" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| ) | ||||
| 
 | ||||
| type preRunArgs struct { | ||||
|  |  | |||
|  | @ -18,9 +18,9 @@ | |||
| package main | ||||
| 
 | ||||
| import ( | ||||
| 	configaction "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/debug/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"github.com/spf13/cobra" | ||||
| 	configaction "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/debug/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| ) | ||||
| 
 | ||||
| func debugCommands() *cobra.Command { | ||||
|  |  | |||
|  | @ -25,8 +25,8 @@ import ( | |||
| 
 | ||||
| 	"github.com/spf13/cobra" | ||||
| 
 | ||||
| 	_ "github.com/superseriousbusiness/gotosocial/docs" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	_ "code.superseriousbusiness.org/gotosocial/docs" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| ) | ||||
| 
 | ||||
| // Version is the version of GoToSocial being used. | ||||
|  |  | |||
|  | @ -18,9 +18,9 @@ | |||
| package main | ||||
| 
 | ||||
| import ( | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/server" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"github.com/spf13/cobra" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/server" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| ) | ||||
| 
 | ||||
| // serverCommands returns the 'server' subcommand | ||||
|  |  | |||
|  | @ -18,8 +18,8 @@ | |||
| package main | ||||
| 
 | ||||
| import ( | ||||
| 	"code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action/testrig" | ||||
| 	"github.com/spf13/cobra" | ||||
| 	"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/testrig" | ||||
| ) | ||||
| 
 | ||||
| func testrigCommands() *cobra.Command { | ||||
|  |  | |||
|  | @ -24,15 +24,15 @@ import ( | |||
| 	"os/signal" | ||||
| 	"syscall" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db/bundb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media/ffmpeg" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/util" | ||||
| 	"codeberg.org/gruf/go-storage/memory" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/bundb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/util" | ||||
| ) | ||||
| 
 | ||||
| func main() { | ||||
|  |  | |||
|  | @ -27,15 +27,15 @@ import ( | |||
| 	"syscall" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db/bundb" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media/ffmpeg" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| 	"codeberg.org/gruf/go-storage/memory" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/bundb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media/ffmpeg" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| ) | ||||
| 
 | ||||
| func main() { | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ definitions: | |||
|     FilterAction: | ||||
|         title: FilterAction is the action to apply to statuses matching a filter. | ||||
|         type: string | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     InstanceConfigurationEmojis: | ||||
|         properties: | ||||
|             emoji_size_limit: | ||||
|  | @ -14,7 +14,7 @@ definitions: | |||
|                 x-go-name: EmojiSizeLimit | ||||
|         title: InstanceConfigurationEmojis models instance emoji config parameters. | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     Link: | ||||
|         description: See https://webfinger.net/ and https://www.rfc-editor.org/rfc/rfc6415.html#section-3.1 | ||||
|         properties: | ||||
|  | @ -32,7 +32,7 @@ definitions: | |||
|                 x-go-name: Type | ||||
|         title: Link represents one 'link' in a slice of links returned from a lookup request. | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     Mention: | ||||
|         properties: | ||||
|             acct: | ||||
|  | @ -59,7 +59,7 @@ definitions: | |||
|                 x-go-name: Username | ||||
|         title: Mention represents a mention of another account. | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     NodeInfoServices: | ||||
|         properties: | ||||
|             inbound: | ||||
|  | @ -74,7 +74,7 @@ definitions: | |||
|                 x-go-name: Outbound | ||||
|         title: NodeInfoServices represents inbound and outbound services that this node offers connections to. | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     NodeInfoSoftware: | ||||
|         properties: | ||||
|             homepage: | ||||
|  | @ -97,7 +97,7 @@ definitions: | |||
|                 x-go-name: Version | ||||
|         title: NodeInfoSoftware represents the name and version number of the software of this node. | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     NodeInfoUsage: | ||||
|         properties: | ||||
|             localComments: | ||||
|  | @ -112,7 +112,7 @@ definitions: | |||
|                 $ref: '#/definitions/NodeInfoUsers' | ||||
|         title: NodeInfoUsage represents usage information about this server, such as number of users. | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     NodeInfoUsers: | ||||
|         properties: | ||||
|             activeHalfYear: | ||||
|  | @ -129,7 +129,7 @@ definitions: | |||
|                 x-go-name: Total | ||||
|         title: NodeInfoUsers represents aggregate information about the users on the server. | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     Source: | ||||
|         description: Returned as an additional entity when verifying and updated credentials, as an attribute of Account. | ||||
|         properties: | ||||
|  | @ -196,7 +196,7 @@ definitions: | |||
|                 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 | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     TimelineMarker: | ||||
|         properties: | ||||
|             last_read_id: | ||||
|  | @ -214,11 +214,11 @@ definitions: | |||
|                 x-go-name: Version | ||||
|         title: TimelineMarker contains information about a user's progress through a specific timeline. | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     WebPushNotificationPolicy: | ||||
|         title: WebPushNotificationPolicy names sets of accounts that can generate notifications. | ||||
|         type: string | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     account: | ||||
|         description: The modelled account can be either a remote account, or one on this instance. | ||||
|         properties: | ||||
|  | @ -400,7 +400,7 @@ definitions: | |||
|         title: Account models a fediverse account. | ||||
|         type: object | ||||
|         x-go-name: Account | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     accountDisplayRole: | ||||
|         description: This is a subset of AccountRole. | ||||
|         properties: | ||||
|  | @ -423,7 +423,7 @@ definitions: | |||
|         title: AccountDisplayRole models a public, displayable role of an account. | ||||
|         type: object | ||||
|         x-go-name: AccountDisplayRole | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     accountExportStats: | ||||
|         description: |- | ||||
|             AccountExportStats models an account's stats | ||||
|  | @ -473,7 +473,7 @@ definitions: | |||
|                 x-go-name: StatusesCount | ||||
|         type: object | ||||
|         x-go-name: AccountExportStats | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     accountRelationship: | ||||
|         properties: | ||||
|             blocked_by: | ||||
|  | @ -536,7 +536,7 @@ definitions: | |||
|         title: Relationship represents a relationship between accounts. | ||||
|         type: object | ||||
|         x-go-name: Relationship | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     accountRole: | ||||
|         properties: | ||||
|             color: | ||||
|  | @ -568,7 +568,7 @@ definitions: | |||
|         title: AccountRole models the role of an account. | ||||
|         type: object | ||||
|         x-go-name: AccountRole | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     adminAccountInfo: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -663,7 +663,7 @@ definitions: | |||
|         title: AdminAccountInfo models the admin view of an account's details. | ||||
|         type: object | ||||
|         x-go-name: AdminAccountInfo | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     adminActionResponse: | ||||
|         description: |- | ||||
|             AdminActionResponse models the server | ||||
|  | @ -676,7 +676,7 @@ definitions: | |||
|                 x-go-name: ActionID | ||||
|         type: object | ||||
|         x-go-name: AdminActionResponse | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     adminEmoji: | ||||
|         properties: | ||||
|             category: | ||||
|  | @ -743,7 +743,7 @@ definitions: | |||
|         title: AdminEmoji models the admin view of a custom emoji. | ||||
|         type: object | ||||
|         x-go-name: AdminEmoji | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     adminReport: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -824,7 +824,7 @@ definitions: | |||
|         title: AdminReport models the admin view of a report. | ||||
|         type: object | ||||
|         x-go-name: AdminReport | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     application: | ||||
|         properties: | ||||
|             client_id: | ||||
|  | @ -880,7 +880,7 @@ definitions: | |||
|         title: Application models an api application. | ||||
|         type: object | ||||
|         x-go-name: Application | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     attachment: | ||||
|         properties: | ||||
|             blurhash: | ||||
|  | @ -939,7 +939,7 @@ definitions: | |||
|         title: Attachment models a media attachment. | ||||
|         type: object | ||||
|         x-go-name: Attachment | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     card: | ||||
|         properties: | ||||
|             author_name: | ||||
|  | @ -1012,7 +1012,7 @@ definitions: | |||
|         title: Card represents a rich preview card that is generated using OpenGraph tags from a URL. | ||||
|         type: object | ||||
|         x-go-name: Card | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     conversation: | ||||
|         description: |- | ||||
|             Conversation represents a conversation | ||||
|  | @ -1041,7 +1041,7 @@ definitions: | |||
|                 x-go-name: Unread | ||||
|         type: object | ||||
|         x-go-name: Conversation | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     debugAPUrlResponse: | ||||
|         description: |- | ||||
|             DebugAPUrlResponse provides detailed debug | ||||
|  | @ -1081,7 +1081,7 @@ definitions: | |||
|                 x-go-name: ResponseHeaders | ||||
|         type: object | ||||
|         x-go-name: DebugAPUrlResponse | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     defaultPolicies: | ||||
|         properties: | ||||
|             direct: | ||||
|  | @ -1095,7 +1095,7 @@ definitions: | |||
|         title: Default interaction policies to use for new statuses by requesting account. | ||||
|         type: object | ||||
|         x-go-name: DefaultPolicies | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     domain: | ||||
|         description: Domain represents a remote domain | ||||
|         properties: | ||||
|  | @ -1130,7 +1130,7 @@ definitions: | |||
|                 x-go-name: SuspendedAt | ||||
|         type: object | ||||
|         x-go-name: Domain | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     domainPermission: | ||||
|         properties: | ||||
|             comment: | ||||
|  | @ -1202,7 +1202,7 @@ definitions: | |||
|         title: DomainPermission represents a permission applied to one domain (explicit block/allow). | ||||
|         type: object | ||||
|         x-go-name: DomainPermission | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     domainPermissionSubscription: | ||||
|         properties: | ||||
|             adopt_orphans: | ||||
|  | @ -1296,7 +1296,7 @@ definitions: | |||
|         title: DomainPermissionSubscription represents an auto-refreshing subscription to a list of domain permissions (allows, blocks). | ||||
|         type: object | ||||
|         x-go-name: DomainPermissionSubscription | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     emoji: | ||||
|         properties: | ||||
|             category: | ||||
|  | @ -1327,7 +1327,7 @@ definitions: | |||
|         title: Emoji represents a custom emoji. | ||||
|         type: object | ||||
|         x-go-name: Emoji | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     emojiCategory: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -1341,7 +1341,7 @@ definitions: | |||
|         title: EmojiCategory represents a custom emoji category. | ||||
|         type: object | ||||
|         x-go-name: EmojiCategory | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     field: | ||||
|         properties: | ||||
|             name: | ||||
|  | @ -1362,13 +1362,13 @@ definitions: | |||
|         title: Field represents a name/value pair to display on an account's profile. | ||||
|         type: object | ||||
|         x-go-name: Field | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterContext: | ||||
|         description: v1 and v2 filter APIs use the same set of contexts. | ||||
|         title: FilterContext represents the context in which to apply a filter. | ||||
|         type: string | ||||
|         x-go-name: FilterContext | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterKeyword: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -1388,7 +1388,7 @@ definitions: | |||
|         title: FilterKeyword represents text to filter within a v2 filter. | ||||
|         type: object | ||||
|         x-go-name: FilterKeyword | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterResult: | ||||
|         properties: | ||||
|             filter: | ||||
|  | @ -1408,7 +1408,7 @@ definitions: | |||
|         title: FilterResult is returned along with a filtered status to explain why it was filtered. | ||||
|         type: object | ||||
|         x-go-name: FilterResult | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterStatus: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -1422,7 +1422,7 @@ definitions: | |||
|         title: FilterStatus represents a single status to filter within a v2 filter. | ||||
|         type: object | ||||
|         x-go-name: FilterStatus | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterV1: | ||||
|         description: |- | ||||
|             Note that v1 filters are mapped to v2 filters and v2 filter keywords internally. | ||||
|  | @ -1471,7 +1471,7 @@ definitions: | |||
|         title: FilterV1 represents a user-defined filter for determining which statuses should not be shown to the user. | ||||
|         type: object | ||||
|         x-go-name: FilterV1 | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterV2: | ||||
|         description: v2 filters have names and can include multiple phrases and status IDs to filter. | ||||
|         properties: | ||||
|  | @ -1517,7 +1517,7 @@ definitions: | |||
|         title: FilterV2 represents a user-defined filter for determining which statuses should not be shown to the user. | ||||
|         type: object | ||||
|         x-go-name: FilterV2 | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     headerFilter: | ||||
|         properties: | ||||
|             created_at: | ||||
|  | @ -1551,7 +1551,7 @@ definitions: | |||
|         title: HeaderFilter represents a regex value filter applied to one particular HTTP header (allow / block). | ||||
|         type: object | ||||
|         x-go-name: HeaderFilter | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     hostmeta: | ||||
|         description: 'See: https://www.rfc-editor.org/rfc/rfc6415.html#section-3' | ||||
|         properties: | ||||
|  | @ -1565,7 +1565,7 @@ definitions: | |||
|         title: HostMeta represents a hostmeta document. | ||||
|         type: object | ||||
|         x-go-name: HostMeta | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceConfigurationAccounts: | ||||
|         properties: | ||||
|             allow_custom_css: | ||||
|  | @ -1590,7 +1590,7 @@ definitions: | |||
|         title: InstanceConfigurationAccounts models instance account config parameters. | ||||
|         type: object | ||||
|         x-go-name: InstanceConfigurationAccounts | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceConfigurationMediaAttachments: | ||||
|         properties: | ||||
|             image_matrix_limit: | ||||
|  | @ -1643,7 +1643,7 @@ definitions: | |||
|         title: InstanceConfigurationMediaAttachments models instance media attachment config parameters. | ||||
|         type: object | ||||
|         x-go-name: InstanceConfigurationMediaAttachments | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceConfigurationPolls: | ||||
|         properties: | ||||
|             max_characters_per_option: | ||||
|  | @ -1673,7 +1673,7 @@ definitions: | |||
|         title: InstanceConfigurationPolls models instance poll config parameters. | ||||
|         type: object | ||||
|         x-go-name: InstanceConfigurationPolls | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceConfigurationStatuses: | ||||
|         properties: | ||||
|             characters_reserved_per_url: | ||||
|  | @ -1706,7 +1706,7 @@ definitions: | |||
|         title: InstanceConfigurationStatuses models instance status config parameters. | ||||
|         type: object | ||||
|         x-go-name: InstanceConfigurationStatuses | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceRule: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -1718,7 +1718,7 @@ definitions: | |||
|         title: InstanceRule represents a single instance rule. | ||||
|         type: object | ||||
|         x-go-name: InstanceRule | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV1: | ||||
|         properties: | ||||
|             account_domain: | ||||
|  | @ -1875,7 +1875,7 @@ definitions: | |||
|         title: InstanceV1 models information about this instance. | ||||
|         type: object | ||||
|         x-go-name: InstanceV1 | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV1Configuration: | ||||
|         properties: | ||||
|             accounts: | ||||
|  | @ -1895,7 +1895,7 @@ definitions: | |||
|         title: InstanceV1Configuration models instance configuration parameters. | ||||
|         type: object | ||||
|         x-go-name: InstanceV1Configuration | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV1URLs: | ||||
|         properties: | ||||
|             streaming_api: | ||||
|  | @ -1906,7 +1906,7 @@ definitions: | |||
|         title: InstanceV1URLs models instance-relevant URLs for client application consumption. | ||||
|         type: object | ||||
|         x-go-name: InstanceV1URLs | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2: | ||||
|         properties: | ||||
|             account_domain: | ||||
|  | @ -1998,7 +1998,7 @@ definitions: | |||
|         title: InstanceV2 models information about this instance. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2 | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Configuration: | ||||
|         properties: | ||||
|             accounts: | ||||
|  | @ -2024,7 +2024,7 @@ definitions: | |||
|         title: Configured values and limits for this instance. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Configuration | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2ConfigurationTranslation: | ||||
|         properties: | ||||
|             enabled: | ||||
|  | @ -2036,7 +2036,7 @@ definitions: | |||
|         title: Hints related to translation. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2ConfigurationTranslation | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2ConfigurationVAPID: | ||||
|         properties: | ||||
|             public_key: | ||||
|  | @ -2046,7 +2046,7 @@ definitions: | |||
|         title: InstanceV2ConfigurationVAPID holds the instance's VAPID configuration. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2ConfigurationVAPID | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Contact: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -2061,7 +2061,7 @@ definitions: | |||
|         title: Hints related to contacting a representative of the instance. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Contact | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Registrations: | ||||
|         properties: | ||||
|             approval_required: | ||||
|  | @ -2084,7 +2084,7 @@ definitions: | |||
|         title: Information about registering for this instance. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Registrations | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Thumbnail: | ||||
|         properties: | ||||
|             blurhash: | ||||
|  | @ -2130,7 +2130,7 @@ definitions: | |||
|         title: An image used to represent this instance. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Thumbnail | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2ThumbnailVersions: | ||||
|         properties: | ||||
|             '@1x': | ||||
|  | @ -2148,7 +2148,7 @@ definitions: | |||
|         title: Links to scaled resolution images, for high DPI screens. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2ThumbnailVersions | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2URLs: | ||||
|         properties: | ||||
|             streaming: | ||||
|  | @ -2159,7 +2159,7 @@ definitions: | |||
|         title: InstanceV2URLs models instance-relevant URLs for client application consumption. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2URLs | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Usage: | ||||
|         properties: | ||||
|             users: | ||||
|  | @ -2167,7 +2167,7 @@ definitions: | |||
|         title: Usage data for this instance. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Usage | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Users: | ||||
|         properties: | ||||
|             active_month: | ||||
|  | @ -2181,7 +2181,7 @@ definitions: | |||
|         title: Usage data related to users on this instance. | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Users | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     interactionPolicy: | ||||
|         properties: | ||||
|             can_favourite: | ||||
|  | @ -2193,7 +2193,7 @@ definitions: | |||
|         title: Interaction policy of a status. | ||||
|         type: object | ||||
|         x-go-name: InteractionPolicy | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     interactionPolicyRules: | ||||
|         properties: | ||||
|             always: | ||||
|  | @ -2211,7 +2211,7 @@ definitions: | |||
|         title: Rules for one interaction type. | ||||
|         type: object | ||||
|         x-go-name: PolicyRules | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     interactionPolicyValue: | ||||
|         description: |- | ||||
|             It can be EITHER one of the internal keywords listed below, OR a full-fledged ActivityPub URI of an Actor, like "https://example.org/users/some_user". | ||||
|  | @ -2228,7 +2228,7 @@ definitions: | |||
|         title: One interaction policy entry for a status. | ||||
|         type: string | ||||
|         x-go-name: PolicyValue | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     interactionRequest: | ||||
|         properties: | ||||
|             accepted_at: | ||||
|  | @ -2269,7 +2269,7 @@ definitions: | |||
|         title: InteractionRequest represents a pending, approved, or rejected interaction of type favourite, reply, or reblog. | ||||
|         type: object | ||||
|         x-go-name: InteractionRequest | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     list: | ||||
|         properties: | ||||
|             exclusive: | ||||
|  | @ -2297,7 +2297,7 @@ definitions: | |||
|         title: List represents a user-created list of accounts that the user follows. | ||||
|         type: object | ||||
|         x-go-name: List | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     markers: | ||||
|         properties: | ||||
|             home: | ||||
|  | @ -2307,7 +2307,7 @@ definitions: | |||
|         title: Marker represents the last read position within a user's timelines. | ||||
|         type: object | ||||
|         x-go-name: Marker | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     mediaDimensions: | ||||
|         properties: | ||||
|             aspect: | ||||
|  | @ -2365,7 +2365,7 @@ definitions: | |||
|         title: MediaDimensions models detailed properties of a piece of media. | ||||
|         type: object | ||||
|         x-go-name: MediaDimensions | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     mediaFocus: | ||||
|         properties: | ||||
|             x: | ||||
|  | @ -2385,7 +2385,7 @@ definitions: | |||
|         title: MediaFocus models the focal point of a piece of media. | ||||
|         type: object | ||||
|         x-go-name: MediaFocus | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     mediaMeta: | ||||
|         description: This can be metadata about an image, an audio file, video, etc. | ||||
|         properties: | ||||
|  | @ -2398,7 +2398,7 @@ definitions: | |||
|         title: MediaMeta models media metadata. | ||||
|         type: object | ||||
|         x-go-name: MediaMeta | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     mutedAccount: | ||||
|         properties: | ||||
|             acct: | ||||
|  | @ -2586,7 +2586,7 @@ definitions: | |||
|         title: MutedAccount extends Account with a field used only by the muted user list. | ||||
|         type: object | ||||
|         x-go-name: MutedAccount | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     nodeinfo: | ||||
|         description: 'See: https://nodeinfo.diaspora.software/schema.html' | ||||
|         properties: | ||||
|  | @ -2620,7 +2620,7 @@ definitions: | |||
|         title: Nodeinfo represents a version 2.1 or version 2.0 nodeinfo schema. | ||||
|         type: object | ||||
|         x-go-name: Nodeinfo | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     notification: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -2651,7 +2651,7 @@ definitions: | |||
|         title: Notification represents a notification of an event relevant to the user. | ||||
|         type: object | ||||
|         x-go-name: Notification | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     oauthToken: | ||||
|         properties: | ||||
|             access_token: | ||||
|  | @ -2677,7 +2677,7 @@ definitions: | |||
|         title: Token represents an OAuth token used for authenticating with the GoToSocial API and performing actions. | ||||
|         type: object | ||||
|         x-go-name: Token | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     poll: | ||||
|         properties: | ||||
|             emojis: | ||||
|  | @ -2740,7 +2740,7 @@ definitions: | |||
|         title: Poll represents a poll attached to a status. | ||||
|         type: object | ||||
|         x-go-name: Poll | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     pollOption: | ||||
|         properties: | ||||
|             title: | ||||
|  | @ -2755,7 +2755,7 @@ definitions: | |||
|         title: PollOption represents the current vote counts for different poll options. | ||||
|         type: object | ||||
|         x-go-name: PollOption | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     report: | ||||
|         properties: | ||||
|             action_taken: | ||||
|  | @ -2831,7 +2831,7 @@ definitions: | |||
|         title: Report models a moderation report submitted to the instance, either via the client API or via the federated API. | ||||
|         type: object | ||||
|         x-go-name: Report | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     searchResult: | ||||
|         properties: | ||||
|             accounts: | ||||
|  | @ -2852,7 +2852,7 @@ definitions: | |||
|         title: SearchResult models a search result. | ||||
|         type: object | ||||
|         x-go-name: SearchResult | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     status: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -3015,7 +3015,7 @@ definitions: | |||
|         title: Status models a status or post. | ||||
|         type: object | ||||
|         x-go-name: Status | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     statusEdit: | ||||
|         description: |- | ||||
|             StatusEdit represents one historical revision of a status, containing | ||||
|  | @ -3061,7 +3061,7 @@ definitions: | |||
|                 x-go-name: SpoilerText | ||||
|         type: object | ||||
|         x-go-name: StatusEdit | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     statusReblogged: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -3224,7 +3224,7 @@ definitions: | |||
|         title: StatusReblogged represents a reblogged status. | ||||
|         type: object | ||||
|         x-go-name: StatusReblogged | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     statusSource: | ||||
|         description: |- | ||||
|             StatusSource represents the source text of a | ||||
|  | @ -3249,7 +3249,7 @@ definitions: | |||
|                 x-go-name: Text | ||||
|         type: object | ||||
|         x-go-name: StatusSource | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     swaggerCollection: | ||||
|         properties: | ||||
|             '@context': | ||||
|  | @ -3276,7 +3276,7 @@ definitions: | |||
|         title: SwaggerCollection represents an ActivityPub Collection. | ||||
|         type: object | ||||
|         x-go-name: SwaggerCollection | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|     swaggerCollectionPage: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -3311,7 +3311,7 @@ definitions: | |||
|         title: SwaggerCollectionPage represents one page of a collection. | ||||
|         type: object | ||||
|         x-go-name: SwaggerCollectionPage | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|     swaggerFeaturedCollection: | ||||
|         properties: | ||||
|             '@context': | ||||
|  | @ -3348,7 +3348,7 @@ definitions: | |||
|         title: SwaggerFeaturedCollection represents an ActivityPub OrderedCollection. | ||||
|         type: object | ||||
|         x-go-name: SwaggerFeaturedCollection | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|     tag: | ||||
|         properties: | ||||
|             following: | ||||
|  | @ -3378,7 +3378,7 @@ definitions: | |||
|         title: Tag represents a hashtag used within the content of a status. | ||||
|         type: object | ||||
|         x-go-name: Tag | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     theme: | ||||
|         properties: | ||||
|             description: | ||||
|  | @ -3396,7 +3396,7 @@ definitions: | |||
|         title: Theme represents one user-selectable preset CSS theme. | ||||
|         type: object | ||||
|         x-go-name: Theme | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     threadContext: | ||||
|         description: |- | ||||
|             ThreadContext models the tree or | ||||
|  | @ -3416,7 +3416,7 @@ definitions: | |||
|                 x-go-name: Descendants | ||||
|         type: object | ||||
|         x-go-name: ThreadContext | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     tokenInfo: | ||||
|         description: The actual access token itself will never be sent via the API. | ||||
|         properties: | ||||
|  | @ -3447,7 +3447,7 @@ definitions: | |||
|         title: TokenInfo represents metadata about one user-level access token. | ||||
|         type: object | ||||
|         x-go-name: TokenInfo | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     user: | ||||
|         properties: | ||||
|             admin: | ||||
|  | @ -3523,7 +3523,7 @@ definitions: | |||
|         title: User models fields relevant to one user. | ||||
|         type: object | ||||
|         x-go-name: User | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     webPushNotification: | ||||
|         description: |- | ||||
|             It does not contain an entire Notification, just the NotificationID and some preview information. | ||||
|  | @ -3570,7 +3570,7 @@ definitions: | |||
|         title: WebPushNotification represents a notification summary delivered to the client by the Web Push server. | ||||
|         type: object | ||||
|         x-go-name: WebPushNotification | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     webPushSubscription: | ||||
|         properties: | ||||
|             alerts: | ||||
|  | @ -3598,7 +3598,7 @@ definitions: | |||
|         title: WebPushSubscription represents a subscription to a Web Push server. | ||||
|         type: object | ||||
|         x-go-name: WebPushSubscription | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     webPushSubscriptionAlerts: | ||||
|         properties: | ||||
|             admin.report: | ||||
|  | @ -3656,7 +3656,7 @@ definitions: | |||
|         title: WebPushSubscriptionAlerts represents the specific events that this Web Push subscription will receive. | ||||
|         type: object | ||||
|         x-go-name: WebPushSubscriptionAlerts | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     wellKnownResponse: | ||||
|         description: See https://webfinger.net/ | ||||
|         properties: | ||||
|  | @ -3678,7 +3678,7 @@ definitions: | |||
|             For example, it would be returned from https://example.org/.well-known/webfinger?resource=acct:some_username@example.org | ||||
|         type: object | ||||
|         x-go-name: WellKnownResponse | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
| host: example.org | ||||
| info: | ||||
|     contact: | ||||
|  |  | |||
|  | @ -18,7 +18,7 @@ gotosocial --config-path ./config.yaml server start | |||
| 
 | ||||
| The command expects a file in [YAML](https://en.wikipedia.org/wiki/YAML) or [JSON](https://en.wikipedia.org/wiki/JSON) format. | ||||
| 
 | ||||
| An example configuration file, with an explanation of each of the config fields, with default and example values, can be found [here](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml). This example file is also included in release downloads.  | ||||
| An example configuration file, with an explanation of each of the config fields, with default and example values, can be found [here](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml). This example file is also included in release downloads.  | ||||
| 
 | ||||
| It's recommended to create your own configuration file with only the settings you need to change for your installation. This ensures you don't have to reconcile changes to defaults or adding/updating/removing settings from your configuration file that you haven't changed away from the defaults on every release. | ||||
| 
 | ||||
|  | @ -125,7 +125,7 @@ This means in cases where you want to just try changing one thing, but don't wan | |||
| 
 | ||||
| Reasonable default values are provided for *most* of the configuration parameters, except in cases where a custom value is absolutely required. | ||||
| 
 | ||||
| See the [example config file](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml) for the default values, or run `gotosocial --help`. | ||||
| See the [example config file](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml) for the default values, or run `gotosocial --help`. | ||||
| 
 | ||||
| ## `GTS_WAZERO_COMPILATION_CACHE` | ||||
| 
 | ||||
|  |  | |||
|  | @ -38,4 +38,4 @@ We introduced a sign-up flow in v0.16.0. The server you want to sign up to must | |||
| 
 | ||||
| ## Why's it still in Beta? | ||||
| 
 | ||||
| Take a look at the [list of open bugs](https://github.com/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug) and the [roadmap](https://github.com/superseriousbusiness/gotosocial/blob/main/ROADMAP.md) for a more detailed rundown. | ||||
| Take a look at the [list of open bugs](https://github.com/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug) and the [roadmap](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/ROADMAP.md) for a more detailed rundown. | ||||
|  |  | |||
|  | @ -24,7 +24,7 @@ See [#894](https://github.com/superseriousbusiness/gotosocial/issues/894) for mo | |||
| 
 | ||||
| ## Incoming Requests | ||||
| 
 | ||||
| GoToSocial request signature validation is implemented in [internal/federation](https://github.com/superseriousbusiness/gotosocial/blob/main/internal/federation/authenticate.go). | ||||
| GoToSocial request signature validation is implemented in [internal/federation](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/internal/federation/authenticate.go). | ||||
| 
 | ||||
| GoToSocial will attempt to parse the signature using the following algorithms (in order), stopping at the first success: | ||||
| 
 | ||||
|  | @ -36,7 +36,7 @@ ED25519 | |||
| 
 | ||||
| ## Outgoing Requests | ||||
| 
 | ||||
| GoToSocial request signing is implemented in [internal/transport](https://github.com/superseriousbusiness/gotosocial/blob/main/internal/transport/signing.go). | ||||
| GoToSocial request signing is implemented in [internal/transport](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/internal/transport/signing.go). | ||||
| 
 | ||||
| Once https://github.com/superseriousbusiness/gotosocial/issues/2991 is resolved, GoToSocial will use the `(created)` pseudo-header instead of `date`. | ||||
| 
 | ||||
|  |  | |||
|  | @ -155,7 +155,7 @@ Though multiple GtS instances can use the same Postgres database and either shar | |||
| 
 | ||||
| ## Tuning | ||||
| 
 | ||||
| Aside from the many instance tuning options present in the [example config file](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml) you can do additional tuning on the machine your GoToSocial instance is running on. | ||||
| Aside from the many instance tuning options present in the [example config file](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml) you can do additional tuning on the machine your GoToSocial instance is running on. | ||||
| 
 | ||||
| ### Swap | ||||
| 
 | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ definitions: | |||
|         title: FilterAction | ||||
|         description: FilterAction 是针对与过滤规则匹配的贴文所执行的操作。 | ||||
|         type: string | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     InstanceConfigurationEmojis: | ||||
|         properties: | ||||
|             emoji_size_limit: | ||||
|  | @ -16,7 +16,7 @@ definitions: | |||
|         title: InstanceConfigurationEmojis | ||||
|         description: InstanceConfigurationEmojis 结构体包含有关自定义表情的配置信息。 | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     Link: | ||||
|         description: Link 代表针对查询请求返回的链接组中的一个“链接”。详见 https://webfinger.net/ 和 https://www.rfc-editor.org/rfc/rfc6415.html#section-3.1 | ||||
|         properties: | ||||
|  | @ -34,7 +34,7 @@ definitions: | |||
|                 x-go-name: Type | ||||
|         title: Link | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     Mention: | ||||
|         properties: | ||||
|             acct: | ||||
|  | @ -62,7 +62,7 @@ definitions: | |||
|         title: Mention | ||||
|         description: Mention 表示对另一个账户的一次提及。 | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     NodeInfoServices: | ||||
|         properties: | ||||
|             inbound: | ||||
|  | @ -78,7 +78,7 @@ definitions: | |||
|         title: NodeInfoServices | ||||
|         description: 表示此节点对入站和出站连接提供的服务。 | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     NodeInfoSoftware: | ||||
|         properties: | ||||
|             homepage: | ||||
|  | @ -102,7 +102,7 @@ definitions: | |||
|         title: NodeInfoSoftware | ||||
|         description: NodeInfoSoftware 表示此节点软件的名称和版本号。 | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     NodeInfoUsage: | ||||
|         properties: | ||||
|             localComments: | ||||
|  | @ -118,7 +118,7 @@ definitions: | |||
|         title: NodeInfoUsage | ||||
|         description: 表示有关此服务器的使用信息,例如用户数量。 | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     NodeInfoUsers: | ||||
|         properties: | ||||
|             activeHalfYear: | ||||
|  | @ -136,7 +136,7 @@ definitions: | |||
|         title: NodeInfoUsers | ||||
|         description: NodeInfoUsers 表示有关服务器上用户的聚合信息。 | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     Source: | ||||
|         description: Source 表示用户自己账户的内容展示或发布偏好。在验证和更新凭据时,作为 Account 的一个属性返回的附加实体。 | ||||
|         properties: | ||||
|  | @ -195,7 +195,7 @@ definitions: | |||
|                 x-go-name: WebVisibility | ||||
|         title: Source | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     TimelineMarker: | ||||
|         properties: | ||||
|             last_read_id: | ||||
|  | @ -214,11 +214,11 @@ definitions: | |||
|         title: TimelineMarker | ||||
|         description: TimelineMarker 包含有关用户在特定时间线上的阅读进度的信息。 | ||||
|         type: object | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     WebPushNotificationPolicy: | ||||
|         description: WebPushNotificationPolicy 包含可以生成通知的帐户集合。 | ||||
|         type: string | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     account: | ||||
|         description: Account 是一个 Fediverse 账户的抽象模型。被抽象的账户可以是本站账户,也可以是外站账户。 | ||||
|         properties: | ||||
|  | @ -400,7 +400,7 @@ definitions: | |||
|         title: Account | ||||
|         type: object | ||||
|         x-go-name: Account | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     accountDisplayRole: | ||||
|         description: AccountDisplayRole 是账户的公开、可显示身份组的抽象模型。它是 AccountRole 的一个子集。 | ||||
|         properties: | ||||
|  | @ -423,7 +423,7 @@ definitions: | |||
|         title: AccountDisplayRole | ||||
|         type: object | ||||
|         x-go-name: AccountDisplayRole | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     accountExportStats: | ||||
|         description: |- | ||||
|             AccountExportStats 专门用于在 /api/v1/exports/stats 端点上通知有关导出大小的账户统计信息。 | ||||
|  | @ -471,7 +471,7 @@ definitions: | |||
|                 x-go-name: StatusesCount | ||||
|         type: object | ||||
|         x-go-name: AccountExportStats | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     accountRelationship: | ||||
|         properties: | ||||
|             blocked_by: | ||||
|  | @ -535,7 +535,7 @@ definitions: | |||
|         description: Relationship 表示账户之间的关系。 | ||||
|         type: object | ||||
|         x-go-name: Relationship | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     accountRole: | ||||
|         properties: | ||||
|             color: | ||||
|  | @ -568,7 +568,7 @@ definitions: | |||
|         description: AccountRole 是账户的身份组的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: AccountRole | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     adminAccountInfo: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -663,7 +663,7 @@ definitions: | |||
|         description: AdminAccountInfo 是管理员视图下账户详情的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: AdminAccountInfo | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     adminActionResponse: | ||||
|         description: |- | ||||
|             AdminActionResponse 是服务器对管理员操作的响应的抽象模型。 | ||||
|  | @ -675,7 +675,7 @@ definitions: | |||
|                 x-go-name: ActionID | ||||
|         type: object | ||||
|         x-go-name: AdminActionResponse | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     adminEmoji: | ||||
|         properties: | ||||
|             category: | ||||
|  | @ -743,7 +743,7 @@ definitions: | |||
|         description: AdminEmoji 是管理员视图下自定义表情的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: AdminEmoji | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     adminReport: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -825,7 +825,7 @@ definitions: | |||
|         description: AdminReport 是管理员视图下举报的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: AdminReport | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     application: | ||||
|         properties: | ||||
|             client_id: | ||||
|  | @ -877,7 +877,7 @@ definitions: | |||
|         description: Application 是对 API 应用程序的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: Application | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     attachment: | ||||
|         properties: | ||||
|             blurhash: | ||||
|  | @ -937,7 +937,7 @@ definitions: | |||
|         description: Attachment 是媒体附件的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: Attachment | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     card: | ||||
|         properties: | ||||
|             author_name: | ||||
|  | @ -1011,7 +1011,7 @@ definitions: | |||
|         description: Card 表示使用 OpenGraph 标签从 URL 生成的丰富预览卡片。 | ||||
|         type: object | ||||
|         x-go-name: Card | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     conversation: | ||||
|         description: |- | ||||
|             Conversation 表示具有“私信”可见性的对话。 | ||||
|  | @ -1037,7 +1037,7 @@ definitions: | |||
|                 x-go-name: Unread | ||||
|         type: object | ||||
|         x-go-name: Conversation | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     debugAPUrlResponse: | ||||
|         description: |- | ||||
|             DebugAPUrlResponse 提供对 AP URL 解引用请求的详细调试信息。 | ||||
|  | @ -1075,7 +1075,7 @@ definitions: | |||
|                 x-go-name: ResponseHeaders | ||||
|         type: object | ||||
|         x-go-name: DebugAPUrlResponse | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     defaultPolicies: | ||||
|         properties: | ||||
|             direct: | ||||
|  | @ -1089,7 +1089,7 @@ definitions: | |||
|         title: 发起请求的账户的新贴文的默认互动规则。 | ||||
|         type: object | ||||
|         x-go-name: DefaultPolicies | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     domain: | ||||
|         description: Domain 表示一个外站实例 | ||||
|         properties: | ||||
|  | @ -1115,7 +1115,7 @@ definitions: | |||
|                 x-go-name: SuspendedAt | ||||
|         type: object | ||||
|         x-go-name: Domain | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     domainPermission: | ||||
|         properties: | ||||
|             created_at: | ||||
|  | @ -1173,7 +1173,7 @@ definitions: | |||
|         description: DomainPermission 表示应用于某个实例的权限(显式阻止/允许)。 | ||||
|         type: object | ||||
|         x-go-name: DomainPermission | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     domainPermissionSubscription: | ||||
|         properties: | ||||
|             adopt_orphans: | ||||
|  | @ -1268,7 +1268,7 @@ definitions: | |||
|         description: DomainPermissionSubscription (域名权限订阅)表示一个可以自动更新的域名权限列表订阅(类型可以为允许或阻止) | ||||
|         type: object | ||||
|         x-go-name: DomainPermissionSubscription | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     emoji: | ||||
|         properties: | ||||
|             category: | ||||
|  | @ -1300,7 +1300,7 @@ definitions: | |||
|         description: Emoji 表示一个自定义表情。 | ||||
|         type: object | ||||
|         x-go-name: Emoji | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     emojiCategory: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -1315,7 +1315,7 @@ definitions: | |||
|         description: EmojiCategory 表示自定义表情的类别。 | ||||
|         type: object | ||||
|         x-go-name: EmojiCategory | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     field: | ||||
|         properties: | ||||
|             name: | ||||
|  | @ -1337,13 +1337,13 @@ definitions: | |||
|         description: Field 表示要在账户资料上显示的名称/值对。 | ||||
|         type: object | ||||
|         x-go-name: Field | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterContext: | ||||
|         description: FilterContext 表示过滤规则要应用到的上下文。Filter API 的 v1 和 v2 使用相同的上下文集合。 | ||||
|         title: FilterContext | ||||
|         type: string | ||||
|         x-go-name: FilterContext | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterKeyword: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -1364,7 +1364,7 @@ definitions: | |||
|         description: FilterKeyword 表示 v2 过滤规则中要过滤的关键词文本。 | ||||
|         type: object | ||||
|         x-go-name: FilterKeyword | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterResult: | ||||
|         properties: | ||||
|             filter: | ||||
|  | @ -1385,7 +1385,7 @@ definitions: | |||
|         description: FilterResult 与被过滤的贴文一起返回,以解释为什么被过滤。 | ||||
|         type: object | ||||
|         x-go-name: FilterResult | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterStatus: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -1400,7 +1400,7 @@ definitions: | |||
|         description: FilterStatus 表示 v2 过滤规则中被过滤的贴文 ID。 | ||||
|         type: object | ||||
|         x-go-name: FilterStatus | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterV1: | ||||
|         description: |- | ||||
|             FilterV1 表示用户定义的过滤规则,用于确定哪些贴文不应显示给用户。 | ||||
|  | @ -1450,7 +1450,7 @@ definitions: | |||
|         title: FilterV1 | ||||
|         type: object | ||||
|         x-go-name: FilterV1 | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     filterV2: | ||||
|         description: FilterV2 表示用户定义的过滤规则,用于确定哪些贴文不应显示给用户。v2 过滤规则具有名称,并且可以包含多个短语和贴文 ID 以进行过滤。 | ||||
|         properties: | ||||
|  | @ -1496,7 +1496,7 @@ definitions: | |||
|         title: FilterV2 | ||||
|         type: object | ||||
|         x-go-name: FilterV2 | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     headerFilter: | ||||
|         properties: | ||||
|             created_at: | ||||
|  | @ -1531,7 +1531,7 @@ definitions: | |||
|         description: HeaderFilter 表示应用于特定 HTTP 标头的正则过滤规则(允许/阻止)。 | ||||
|         type: object | ||||
|         x-go-name: HeaderFilter | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     hostmeta: | ||||
|         description: 'HostMeta 表示一份 hostmeta 文档。参见: https://www.rfc-editor.org/rfc/rfc6415.html#section-3' | ||||
|         properties: | ||||
|  | @ -1545,7 +1545,7 @@ definitions: | |||
|         title: HostMeta | ||||
|         type: object | ||||
|         x-go-name: HostMeta | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceConfigurationAccounts: | ||||
|         properties: | ||||
|             allow_custom_css: | ||||
|  | @ -1570,7 +1570,7 @@ definitions: | |||
|         description: InstanceConfigurationAccounts 是实例账户配置参数的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceConfigurationAccounts | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceConfigurationMediaAttachments: | ||||
|         properties: | ||||
|             image_matrix_limit: | ||||
|  | @ -1622,7 +1622,7 @@ definitions: | |||
|         description: InstanceConfigurationMediaAttachments 是实例媒体附件配置参数的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceConfigurationMediaAttachments | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceConfigurationPolls: | ||||
|         properties: | ||||
|             max_characters_per_option: | ||||
|  | @ -1653,7 +1653,7 @@ definitions: | |||
|         description: InstanceConfigurationPolls 是实例投票配置参数的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceConfigurationPolls | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceConfigurationStatuses: | ||||
|         properties: | ||||
|             characters_reserved_per_url: | ||||
|  | @ -1687,7 +1687,7 @@ definitions: | |||
|         description: InstanceConfigurationStatuses 是实例贴文配置参数的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceConfigurationStatuses | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceRule: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -1700,7 +1700,7 @@ definitions: | |||
|         description: InstanceRule 表示一条实例规则。 | ||||
|         type: object | ||||
|         x-go-name: InstanceRule | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV1: | ||||
|         properties: | ||||
|             account_domain: | ||||
|  | @ -1856,7 +1856,7 @@ definitions: | |||
|         description: InstanceV1 是关于此实例的信息的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV1 | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV1Configuration: | ||||
|         properties: | ||||
|             accounts: | ||||
|  | @ -1877,7 +1877,7 @@ definitions: | |||
|         description: InstanceV1Configuration 是实例配置参数的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV1Configuration | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV1URLs: | ||||
|         properties: | ||||
|             streaming_api: | ||||
|  | @ -1889,7 +1889,7 @@ definitions: | |||
|         description: InstanceV1URLs 是客户端应用程序使用的与实例相关的 URL 的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV1URLs | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2: | ||||
|         properties: | ||||
|             account_domain: | ||||
|  | @ -1981,7 +1981,7 @@ definitions: | |||
|         description: InstanceV2 是关于此实例的信息的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2 | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Configuration: | ||||
|         properties: | ||||
|             accounts: | ||||
|  | @ -2008,7 +2008,7 @@ definitions: | |||
|         description: 此实例的配置值和限制。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Configuration | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2ConfigurationTranslation: | ||||
|         properties: | ||||
|             enabled: | ||||
|  | @ -2021,7 +2021,7 @@ definitions: | |||
|         description: 关于翻译功能的提示。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2ConfigurationTranslation | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2ConfigurationVAPID: | ||||
|         properties: | ||||
|             public_key: | ||||
|  | @ -2031,7 +2031,7 @@ definitions: | |||
|         title: InstanceV2ConfigurationVAPID 存储实例的 VAPID 配置信息。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2ConfigurationVAPID | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Contact: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -2047,7 +2047,7 @@ definitions: | |||
|         description: 此实例的联系信息。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Contact | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Registrations: | ||||
|         properties: | ||||
|             approval_required: | ||||
|  | @ -2070,7 +2070,7 @@ definitions: | |||
|         description: 此实例有关注册的信息。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Registrations | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Thumbnail: | ||||
|         properties: | ||||
|             blurhash: | ||||
|  | @ -2116,7 +2116,7 @@ definitions: | |||
|         description: 代表此实例的图像。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Thumbnail | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2ThumbnailVersions: | ||||
|         properties: | ||||
|             '@1x': | ||||
|  | @ -2135,7 +2135,7 @@ definitions: | |||
|         description: 缩略图的高分辨率版本,用于高 DPI 屏幕。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2ThumbnailVersions | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2URLs: | ||||
|         properties: | ||||
|             streaming: | ||||
|  | @ -2147,7 +2147,7 @@ definitions: | |||
|         description: InstanceV2URLs 是客户端应用程序使用的与实例相关的 URL 的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2URLs | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Usage: | ||||
|         properties: | ||||
|             users: | ||||
|  | @ -2156,7 +2156,7 @@ definitions: | |||
|         description: InstanceV2Usage 是关于此实例的使用数据的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Usage | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     instanceV2Users: | ||||
|         properties: | ||||
|             active_month: | ||||
|  | @ -2171,7 +2171,7 @@ definitions: | |||
|         description: 此实例的用户使用数据。 | ||||
|         type: object | ||||
|         x-go-name: InstanceV2Users | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     interactionPolicy: | ||||
|         properties: | ||||
|             can_favourite: | ||||
|  | @ -2184,7 +2184,7 @@ definitions: | |||
|         description: 某条贴文的互动规则。 | ||||
|         type: object | ||||
|         x-go-name: InteractionPolicy | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     interactionPolicyRules: | ||||
|         properties: | ||||
|             always: | ||||
|  | @ -2203,7 +2203,7 @@ definitions: | |||
|         description: 某类互动的规则。 | ||||
|         type: object | ||||
|         x-go-name: PolicyRules | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     interactionPolicyValue: | ||||
|         description: |- | ||||
|             一条贴文的互动规则条目。 | ||||
|  | @ -2221,7 +2221,7 @@ definitions: | |||
|         title: InteractionPolicyValue | ||||
|         type: string | ||||
|         x-go-name: PolicyValue | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     interactionRequest: | ||||
|         properties: | ||||
|             accepted_at: | ||||
|  | @ -2263,7 +2263,7 @@ definitions: | |||
|         description: InteractionRequest 表示待处理、已批准或已拒绝的点赞、回复或转发互动。 | ||||
|         type: object | ||||
|         x-go-name: InteractionRequest | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     list: | ||||
|         properties: | ||||
|             exclusive: | ||||
|  | @ -2292,7 +2292,7 @@ definitions: | |||
|         description: List 表示用户为关注的账户创建的列表。 | ||||
|         type: object | ||||
|         x-go-name: List | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     markers: | ||||
|         properties: | ||||
|             home: | ||||
|  | @ -2303,7 +2303,7 @@ definitions: | |||
|         description: Marker 表示用户时间线中的上次阅读位置。 | ||||
|         type: object | ||||
|         x-go-name: Marker | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     mediaDimensions: | ||||
|         properties: | ||||
|             aspect: | ||||
|  | @ -2362,7 +2362,7 @@ definitions: | |||
|         description: MediaDimensions 是一份媒体附件的详细属性的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: MediaDimensions | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     mediaFocus: | ||||
|         properties: | ||||
|             x: | ||||
|  | @ -2381,7 +2381,7 @@ definitions: | |||
|         description: MediaFocus 是媒体附件的焦点的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: MediaFocus | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     mediaMeta: | ||||
|         description: MediaMeta 是媒体附件的元数据的抽象模型。这可以是有关图像、音频文件、视频等的元数据。 | ||||
|         properties: | ||||
|  | @ -2394,7 +2394,7 @@ definitions: | |||
|         title: MediaMeta | ||||
|         type: object | ||||
|         x-go-name: MediaMeta | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     mutedAccount: | ||||
|         properties: | ||||
|             acct: | ||||
|  | @ -2582,7 +2582,7 @@ definitions: | |||
|         description: MutedAccount 扩展了 Account,其中包含仅静音/隐藏用户列表使用的字段。 | ||||
|         type: object | ||||
|         x-go-name: MutedAccount | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     nodeinfo: | ||||
|         description: 'NodeInfo 表示版本 2.1 或版本 2.0 的 nodeinfo 数据结构。参见: https://nodeinfo.diaspora.software/schema.html' | ||||
|         properties: | ||||
|  | @ -2616,7 +2616,7 @@ definitions: | |||
|         title: Nodeinfo | ||||
|         type: object | ||||
|         x-go-name: Nodeinfo | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     notification: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -2648,7 +2648,7 @@ definitions: | |||
|         description: Notification 表示与用户相关的事件的通知。 | ||||
|         type: object | ||||
|         x-go-name: Notification | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     oauthToken: | ||||
|         properties: | ||||
|             access_token: | ||||
|  | @ -2675,7 +2675,7 @@ definitions: | |||
|         description: Token 表示用于 GoToSocial API 身份验证和执行操作的 OAuth 令牌。 | ||||
|         type: object | ||||
|         x-go-name: Token | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     poll: | ||||
|         properties: | ||||
|             emojis: | ||||
|  | @ -2738,7 +2738,7 @@ definitions: | |||
|         description: Poll 表示一个附加到贴文的投票。 | ||||
|         type: object | ||||
|         x-go-name: Poll | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     pollOption: | ||||
|         properties: | ||||
|             title: | ||||
|  | @ -2754,7 +2754,7 @@ definitions: | |||
|         description: PollOption 表示不同投票选项的当前投票计数。 | ||||
|         type: object | ||||
|         x-go-name: PollOption | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     report: | ||||
|         properties: | ||||
|             action_taken: | ||||
|  | @ -2831,7 +2831,7 @@ definitions: | |||
|         description: Report 是提交给实例的一份举报的抽象模型,可以通过客户端 API 或联合 API 提交。 | ||||
|         type: object | ||||
|         x-go-name: Report | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     searchResult: | ||||
|         properties: | ||||
|             accounts: | ||||
|  | @ -2853,7 +2853,7 @@ definitions: | |||
|         description: SearchResult 是一次搜索结果的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: SearchResult | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     status: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -3007,7 +3007,7 @@ definitions: | |||
|         description: Status 表示一条贴文或帖子。 | ||||
|         type: object | ||||
|         x-go-name: Status | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     statusEdit: | ||||
|         description: |- | ||||
|             StatusEdit 表示一条贴文的一个历史修订版本,包含该修订版本的状态的部分信息。 | ||||
|  | @ -3059,7 +3059,7 @@ definitions: | |||
|                 x-go-name: SpoilerText | ||||
|         type: object | ||||
|         x-go-name: StatusEdit | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     statusReblogged: | ||||
|         properties: | ||||
|             account: | ||||
|  | @ -3221,7 +3221,7 @@ definitions: | |||
|         description: StatusReblogged 表示一条被转发的贴文。 | ||||
|         type: object | ||||
|         x-go-name: StatusReblogged | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     statusSource: | ||||
|         description: |- | ||||
|             StatusSource 表示创建贴文时提交给 API 的贴文源文本。 | ||||
|  | @ -3245,7 +3245,7 @@ definitions: | |||
|                 x-go-name: Text | ||||
|         type: object | ||||
|         x-go-name: StatusSource | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     swaggerCollection: | ||||
|         properties: | ||||
|             '@context': | ||||
|  | @ -3272,7 +3272,7 @@ definitions: | |||
|         description: SwaggerCollection 表示一个 ActivityPub 集合。 | ||||
|         type: object | ||||
|         x-go-name: SwaggerCollection | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|     swaggerCollectionPage: | ||||
|         properties: | ||||
|             id: | ||||
|  | @ -3308,7 +3308,7 @@ definitions: | |||
|         description: SwaggerCollectionPage 表示一个 ActivityPub 集合的一页。 | ||||
|         type: object | ||||
|         x-go-name: SwaggerCollectionPage | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|     swaggerFeaturedCollection: | ||||
|         properties: | ||||
|             '@context': | ||||
|  | @ -3345,7 +3345,7 @@ definitions: | |||
|         description: SwaggerFeaturedCollection 表示一个有序 ActivityPub 集合。 | ||||
|         type: object | ||||
|         x-go-name: SwaggerFeaturedCollection | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/activitypub/users | ||||
|     tag: | ||||
|         properties: | ||||
|             following: | ||||
|  | @ -3375,7 +3375,7 @@ definitions: | |||
|         description: Tag 表示贴文内容中使用的某个话题标签。 | ||||
|         type: object | ||||
|         x-go-name: Tag | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     theme: | ||||
|         properties: | ||||
|             description: | ||||
|  | @ -3394,7 +3394,7 @@ definitions: | |||
|         description: Theme 表示一个用户可选的预设 CSS 主题。 | ||||
|         type: object | ||||
|         x-go-name: Theme | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     threadContext: | ||||
|         description: |- | ||||
|             ThreadContext 是围绕给定贴文的贴文树/贴文串的抽象模型。 | ||||
|  | @ -3413,7 +3413,7 @@ definitions: | |||
|                 x-go-name: Descendants | ||||
|         type: object | ||||
|         x-go-name: ThreadContext | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     tokenInfo: | ||||
|         description: |- | ||||
|             TokenInfo 表示与用户关联的访问令牌的元数据。 | ||||
|  | @ -3446,7 +3446,7 @@ definitions: | |||
|         title: TokenInfo | ||||
|         type: object | ||||
|         x-go-name: TokenInfo | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     user: | ||||
|         properties: | ||||
|             admin: | ||||
|  | @ -3518,7 +3518,7 @@ definitions: | |||
|         description: User 是单个用户的相关字段的抽象模型。 | ||||
|         type: object | ||||
|         x-go-name: User | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     webPushNotification: | ||||
|         description: |- | ||||
|             WebPushNotification 表示 Web 推送服务器传递给客户端的通知摘要。 | ||||
|  | @ -3565,7 +3565,7 @@ definitions: | |||
|         title: WebPushNotification | ||||
|         type: object | ||||
|         x-go-name: WebPushNotification | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     webPushSubscription: | ||||
|         properties: | ||||
|             alerts: | ||||
|  | @ -3594,7 +3594,7 @@ definitions: | |||
|         description: WebPushSubscription 表示对 Web 推送服务器的订阅。 | ||||
|         type: object | ||||
|         x-go-name: WebPushSubscription | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     webPushSubscriptionAlerts: | ||||
|         properties: | ||||
|             admin.report: | ||||
|  | @ -3653,7 +3653,7 @@ definitions: | |||
|         description: WebPushSubscriptionAlerts 代表此 Web 推送订阅将接收的具体事件。 | ||||
|         type: object | ||||
|         x-go-name: WebPushSubscriptionAlerts | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
|     wellKnownResponse: | ||||
|         properties: | ||||
|             aliases: | ||||
|  | @ -3676,7 +3676,7 @@ definitions: | |||
|             参见 https://webfinger.net/ | ||||
|         type: object | ||||
|         x-go-name: WellKnownResponse | ||||
|         x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model | ||||
|         x-go-package: code.superseriousbusiness/gotosocial/internal/api/model | ||||
| host: example.org | ||||
| info: | ||||
|     contact: | ||||
|  |  | |||
|  | @ -18,7 +18,7 @@ gotosocial --config-path ./config.yaml server start | |||
| 
 | ||||
| 该命令需要一个 [YAML](https://en.wikipedia.org/wiki/YAML) 或 [JSON](https://en.wikipedia.org/wiki/JSON) 格式的文件。 | ||||
| 
 | ||||
| 可以在[这里](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml)找到示例配置文件,其中包含每个配置字段的解释、默认值和示例值。此示例文件也包含在每个发行版的下载资源中。 | ||||
| 可以在[这里](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml)找到示例配置文件,其中包含每个配置字段的解释、默认值和示例值。此示例文件也包含在每个发行版的下载资源中。 | ||||
| 
 | ||||
| 建议创建你自己的配置文件,只更改你需要改变的设置。这可以确保在每次发布时,你不必合并默认值的更改或者增删未从默认值更改的配置设置。 | ||||
| 
 | ||||
|  | @ -119,7 +119,7 @@ gotosocial server start --media-image-max-size 2097152 | |||
| 
 | ||||
| *大多数*配置参数都提供了合理的默认值,除了必须自定义值的情况。 | ||||
| 
 | ||||
| 请查看[示例配置文件](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml)以获取默认值,或运行 `gotosocial --help`。 | ||||
| 请查看[示例配置文件](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml)以获取默认值,或运行 `gotosocial --help`。 | ||||
| 
 | ||||
| ## `GTS_WAZERO_COMPILATION_CACHE` | ||||
| 
 | ||||
|  |  | |||
|  | @ -38,4 +38,4 @@ GoToSocial 默认配置了基于 IP 的[限流规则](./api/ratelimiting.md), | |||
| 
 | ||||
| ## 为什么还在 Beta 阶段? | ||||
| 
 | ||||
| 查看[当前 bug 列表](https://github.com/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug)和[路线图](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/ROADMAP.md)以获取更详细的信息。 | ||||
| 查看[当前 bug 列表](https://github.com/superseriousbusiness/gotosocial/issues?q=is%3Aissue+is%3Aopen+label%3Abug)和[路线图](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/ROADMAP.md)以获取更详细的信息。 | ||||
|  |  | |||
|  | @ -24,7 +24,7 @@ GoToSocial 使用 [superseriousbusiness/httpsig](https://codeberg.org/superserio | |||
| 
 | ||||
| ## 传入请求 | ||||
| 
 | ||||
| GoToSocial 的请求签名验证在 [internal/federation](https://github.com/superseriousbusiness/gotosocial/blob/main/internal/federation/authenticate.go) 中实现。 | ||||
| GoToSocial 的请求签名验证在 [internal/federation](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/internal/federation/authenticate.go) 中实现。 | ||||
| 
 | ||||
| GoToSocial 将尝试按以下算法顺序解析签名,成功后将停止: | ||||
| 
 | ||||
|  | @ -36,7 +36,7 @@ ED25519 | |||
| 
 | ||||
| ## 发出请求 | ||||
| 
 | ||||
| GoToSocial 的请求签名在 [internal/transport](https://github.com/superseriousbusiness/gotosocial/blob/main/internal/transport/signing.go) 中实现。 | ||||
| GoToSocial 的请求签名在 [internal/transport](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/internal/transport/signing.go) 中实现。 | ||||
| 
 | ||||
| 一旦解决了 https://github.com/superseriousbusiness/gotosocial/issues/2991 ,GoToSocial 将使用 `(created)` 伪标头代替 `date`。 | ||||
| 
 | ||||
|  |  | |||
|  | @ -151,7 +151,7 @@ GoToSocial 不支持[集群或任何形式的多节点部署](https://github.com | |||
| 
 | ||||
| ## 调优 | ||||
| 
 | ||||
| 除了[示例配置文件](https://github.com/superseriousbusiness/gotosocial/blob/main/example/config.yaml)中的众多实例调优选项之外,你还可以对运行 GoToSocial 实例的机器进行额外的调优。 | ||||
| 除了[示例配置文件](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/example/config.yaml)中的众多实例调优选项之外,你还可以对运行 GoToSocial 实例的机器进行额外的调优。 | ||||
| 
 | ||||
| ### 交换内存 | ||||
| 
 | ||||
|  |  | |||
|  | @ -15,7 +15,7 @@ GoToSocial 是一个用 Golang 编写的 [ActivityPub](https://activitypub.rocks | |||
| 
 | ||||
| 文档位于 [docs.gotosocial.org](https://docs.gotosocial.org/zh-cn/)。你可以直接跳至 [API 文档](https://docs.gotosocial.org/zh-cn/latest/api/swagger/)。 | ||||
| 
 | ||||
| 要从源代码构建,请查看 [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件。 | ||||
| 要从源代码构建,请查看 [CONTRIBUTING.md](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件。 | ||||
| 
 | ||||
| 这是实例首页的截图!你也可以看一看本项目在 GoToSocial 上的官方账号: [https://gts.superseriousbusiness.org/@gotosocial](https://gts.superseriousbusiness.org/@gotosocial)。 | ||||
| 
 | ||||
|  | @ -101,7 +101,7 @@ GoToSocial 的愿景是让许多小而特别的实例遍布联邦宇宙,让人 | |||
| 
 | ||||
| 我们在 2021 年 11 月进行了首次 Alpha 发布。我们于 2024 年 9 月/10 月离开 Alpha,进入 Beta 阶段。 | ||||
| 
 | ||||
| 要详细了解已实现和未实现的内容,以及 [稳定发布](https://en.wikipedia.org/wiki/Software_release_life_cycle#Stable_release) 的进展,请查看 [路线图](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/ROADMAP.md)。 | ||||
| 要详细了解已实现和未实现的内容,以及 [稳定发布](https://en.wikipedia.org/wiki/Software_release_life_cycle#Stable_release) 的进展,请查看 [路线图](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/ROADMAP.md)。 | ||||
| 
 | ||||
| --- | ||||
| 
 | ||||
|  | @ -344,7 +344,7 @@ S3 存储桶中的快照版二进制发布由 Github 提交哈希控制。要获 | |||
| 
 | ||||
| ### 从源代码构建 | ||||
| 
 | ||||
| 有关从源代码构建 GoToSocial 的说明,请参见 [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件。 | ||||
| 有关从源代码构建 GoToSocial 的说明,请参见 [CONTRIBUTING.md](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件。 | ||||
| 
 | ||||
| ### 第三方打包 | ||||
| 
 | ||||
|  | @ -365,7 +365,7 @@ S3 存储桶中的快照版二进制发布由 Github 提交哈希控制。要获 | |||
| 
 | ||||
| ## 参与贡献 | ||||
| 
 | ||||
| 你想为 GtS 作出贡献吗?太好了!❤️❤️❤️ 请查看问题页面,看看是否有你想参与的内容,并阅读 [CONTRIBUTING.md](https://github.com/superseriousbusiness/gotosocial/blob/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件以获取指南并配置开发环境。 | ||||
| 你想为 GtS 作出贡献吗?太好了!❤️❤️❤️ 请查看问题页面,看看是否有你想参与的内容,并阅读 [CONTRIBUTING.md](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/docs/locales/zh/repo/CONTRIBUTING.md) 文件以获取指南并配置开发环境。 | ||||
| 
 | ||||
| --- | ||||
| 
 | ||||
|  | @ -454,10 +454,10 @@ GoToSocial 使用以下开源库、框架和工具,在此声明并致谢 💕 | |||
| 
 | ||||
| 该许可具体适用于以下存储库内的文件和子目录: | ||||
| 
 | ||||
| - [树懒标志 png](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.png) | ||||
| - [树懒标志 webp](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.webp) | ||||
| - [树懒标志 svg](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/logo.svg) | ||||
| - [所有默认头像](https://github.com/superseriousbusiness/gotosocial/blob/main/web/assets/default_avatars) | ||||
| - [树懒标志 png](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.png) | ||||
| - [树懒标志 webp](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.webp) | ||||
| - [树懒标志 svg](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/logo.svg) | ||||
| - [所有默认头像](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/web/assets/default_avatars) | ||||
| 
 | ||||
| 根据许可证条款,你可以: | ||||
| 
 | ||||
|  | @ -514,7 +514,7 @@ GoToSocial 欢迎与符合我们价值观的组织进行合作。在此对您的 | |||
| 
 | ||||
| <img src="https://nlnet.nl/logo/NGI/NGIZero-green.hex.svg" width="75" alt="NGIZero logo"/> | ||||
| 
 | ||||
| 结合以上众筹来源,2023 年 GoToSocial Alpha 阶段的开发得到了 [NGI0 Entrust Fund](https://nlnet.nl/entrust/) 旗下的 [NLnet](https://nlnet.nl/) 提供的 50,000 欧元资助。详情请见[此处](https://nlnet.nl/project/GoToSocial/#ack)。成功的资助申请存档在[此处](https://github.com/superseriousbusiness/gotosocial/blob/main/archive/nlnet/2022-next-generation-internet-zero.md)。 | ||||
| 结合以上众筹来源,2023 年 GoToSocial Alpha 阶段的开发得到了 [NGI0 Entrust Fund](https://nlnet.nl/entrust/) 旗下的 [NLnet](https://nlnet.nl/) 提供的 50,000 欧元资助。详情请见[此处](https://nlnet.nl/project/GoToSocial/#ack)。成功的资助申请存档在[此处](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/archive/nlnet/2022-next-generation-internet-zero.md)。 | ||||
| 
 | ||||
| 2024 年 GoToSocial Beta 阶段的开发将从 [NGI0 Entrust Fund](https://nlnet.nl/entrust/) 旗下的 [NLnet](https://nlnet.nl/) 那里再获得 50,000 欧元的资助。 | ||||
| 
 | ||||
|  | @ -524,7 +524,7 @@ GoToSocial 欢迎与符合我们价值观的组织进行合作。在此对您的 | |||
| 
 | ||||
|  | ||||
| 
 | ||||
| GoToSocial 是自由软件,采用 [GNU AGPL v3 许可](https://github.com/superseriousbusiness/gotosocial/blob/main/LICENSE)。我们鼓励你对代码进行派生和修改,进行各种实验。 | ||||
| GoToSocial 是自由软件,采用 [GNU AGPL v3 许可](https://https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/LICENSE)。我们鼓励你对代码进行派生和修改,进行各种实验。 | ||||
| 
 | ||||
| 有关 AGPL 和 GPL 许可之间的区别,请参阅[这里](https://www.gnu.org/licenses/why-affero-gpl.html),关于 GPL 许可(包括 AGPL)的常见问题解答,请参阅[这里](https://www.gnu.org/licenses/gpl-faq.html)。 | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										2
									
								
								go.mod
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
										
									
									
									
								
							|  | @ -1,4 +1,4 @@ | |||
| module github.com/superseriousbusiness/gotosocial | ||||
| module code.superseriousbusiness.org/gotosocial | ||||
| 
 | ||||
| go 1.23.0 | ||||
| 
 | ||||
|  |  | |||
|  | @ -23,12 +23,12 @@ import ( | |||
| 	"sync" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtscontext" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/workers" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtscontext" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/workers" | ||||
| ) | ||||
| 
 | ||||
| func errActionConflict(action *gtsmodel.AdminAction) gtserror.WithCode { | ||||
|  |  | |||
|  | @ -24,12 +24,12 @@ import ( | |||
| 	"testing" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/id" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/id" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
|  | @ -21,8 +21,8 @@ import ( | |||
| 	"context" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| ) | ||||
| 
 | ||||
| func (a *Actions) DomainKeysExpireF(domain string) ActionF { | ||||
|  |  | |||
|  | @ -24,13 +24,13 @@ import ( | |||
| 
 | ||||
| 	"codeberg.org/gruf/go-kv" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/messages" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/messages" | ||||
| ) | ||||
| 
 | ||||
| // Returns an AdminActionF for | ||||
|  |  | |||
|  | @ -22,9 +22,9 @@ import ( | |||
| 	"errors" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| ) | ||||
| 
 | ||||
| // stubbifyInstance renders the given instance as a stub, | ||||
|  |  | |||
|  | @ -22,10 +22,10 @@ import ( | |||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/paging" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/util" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/paging" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/util" | ||||
| ) | ||||
| 
 | ||||
| func TestASCollection(t *testing.T) { | ||||
|  |  | |||
|  | @ -25,10 +25,10 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| func document1() vocab.ActivityStreamsDocument { | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/paging" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/paging" | ||||
| ) | ||||
| 
 | ||||
| // TODO: replace must of this logic with just | ||||
|  |  | |||
|  | @ -25,7 +25,7 @@ import ( | |||
| 	"code.superseriousbusiness.org/activity/pub" | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| var testIteratorIRIs = [][]string{ | ||||
|  |  | |||
|  | @ -30,10 +30,10 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/pub" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/text" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/text" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/util" | ||||
| ) | ||||
| 
 | ||||
| // ExtractObjects will extract object vocab.Types from given implementing interface. | ||||
|  |  | |||
|  | @ -23,8 +23,8 @@ import ( | |||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| type ExtractAttachmentsTestSuite struct { | ||||
|  |  | |||
|  | @ -20,8 +20,8 @@ package ap_test | |||
| import ( | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| type ExtractContentTestSuite struct { | ||||
|  |  | |||
|  | @ -23,8 +23,8 @@ import ( | |||
| 	"io" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| type ExtractEmojisTestSuite struct { | ||||
|  |  | |||
|  | @ -24,8 +24,8 @@ import ( | |||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| type ExtractFocusTestSuite struct { | ||||
|  |  | |||
|  | @ -20,8 +20,8 @@ package ap_test | |||
| import ( | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| type ExtractHashtagsTestSuite struct { | ||||
|  |  | |||
|  | @ -21,9 +21,9 @@ import ( | |||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type ExtractMentionsTestSuite struct { | ||||
|  |  | |||
|  | @ -23,9 +23,9 @@ import ( | |||
| 	"io" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| ) | ||||
| 
 | ||||
| type ExtractPolicyTestSuite struct { | ||||
|  |  | |||
|  | @ -24,8 +24,8 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
|  | @ -20,8 +20,8 @@ package ap_test | |||
| import ( | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| type ExtractSensitiveTestSuite struct { | ||||
|  |  | |||
|  | @ -20,9 +20,9 @@ package ap_test | |||
| import ( | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| ) | ||||
| 
 | ||||
| type ExtractVisibilityTestSuite struct { | ||||
|  |  | |||
|  | @ -19,7 +19,7 @@ package ap_test | |||
| 
 | ||||
| import ( | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| ) | ||||
| 
 | ||||
| var ( | ||||
|  |  | |||
|  | @ -20,8 +20,8 @@ package ap | |||
| import ( | ||||
| 	"code.superseriousbusiness.org/activity/pub" | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/text" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/text" | ||||
| ) | ||||
| 
 | ||||
| /* | ||||
|  |  | |||
|  | @ -21,9 +21,9 @@ import ( | |||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type NormalizeTestSuite struct { | ||||
|  |  | |||
|  | @ -24,7 +24,7 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // MustGet performs the given 'Get$Property(with) (T, error)' signature function, panicking on error. | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ import ( | |||
| 	"code.superseriousbusiness.org/activity/pub" | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // ResolveActivity is a util function for pulling a pub.Activity type out of an incoming request body, | ||||
|  |  | |||
|  | @ -23,9 +23,9 @@ import ( | |||
| 	"io" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| type ResolveTestSuite struct { | ||||
|  |  | |||
|  | @ -20,7 +20,7 @@ package ap | |||
| import ( | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // Serialize is a custom serializer for ActivityStreams types. | ||||
|  |  | |||
|  | @ -18,14 +18,14 @@ | |||
| package api | ||||
| 
 | ||||
| import ( | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/emoji" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/publickey" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/middleware" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/router" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/emoji" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/publickey" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/middleware" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/router" | ||||
| ) | ||||
| 
 | ||||
| type ActivityPub struct { | ||||
|  |  | |||
|  | @ -20,8 +20,8 @@ package emoji | |||
| import ( | ||||
| 	"net/http" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
|  | @ -22,9 +22,9 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| func (m *Module) EmojiGetHandler(c *gin.Context) { | ||||
|  |  | |||
|  | @ -23,21 +23,21 @@ import ( | |||
| 	"net/http/httptest" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/admin" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/emoji" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/email" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/federation" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/middleware" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/typeutils" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/admin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/emoji" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/email" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/federation" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/middleware" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/typeutils" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type EmojiGetTestSuite struct { | ||||
|  |  | |||
|  | @ -20,9 +20,9 @@ package publickey | |||
| import ( | ||||
| 	"net/http" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/uris" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/uris" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
|  | @ -22,9 +22,9 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // PublicKeyGETHandler should be served at eg https://example.org/users/:username/main-key. | ||||
|  |  | |||
|  | @ -20,9 +20,9 @@ package users | |||
| import ( | ||||
| 	"net/http" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // AcceptGETHandler serves an interaction request as an ActivityStreams Accept. | ||||
|  |  | |||
|  | @ -22,9 +22,9 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // FeaturedCollectionGETHandler swagger:operation GET /users/{username}/collections/featured s2sFeaturedCollectionGet | ||||
|  |  | |||
|  | @ -22,10 +22,10 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/paging" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/paging" | ||||
| ) | ||||
| 
 | ||||
| // FollowersGETHandler returns a collection of URIs for followers of the target user, formatted so that other AP servers can understand it. | ||||
|  |  | |||
|  | @ -22,10 +22,10 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/paging" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/paging" | ||||
| ) | ||||
| 
 | ||||
| // FollowingGETHandler returns a collection of URIs for accounts that the target user follows, formatted so that other AP servers can understand it. | ||||
|  |  | |||
|  | @ -20,10 +20,10 @@ package users | |||
| import ( | ||||
| 	"net/http" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/log" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||
| 
 | ||||
| 	errorsv2 "codeberg.org/gruf/go-errors/v2" | ||||
| ) | ||||
|  |  | |||
|  | @ -31,15 +31,15 @@ import ( | |||
| 	"code.superseriousbusiness.org/activity/pub" | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/id" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/id" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type InboxPostTestSuite struct { | ||||
|  |  | |||
|  | @ -22,10 +22,10 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/paging" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/paging" | ||||
| ) | ||||
| 
 | ||||
| // OutboxGETHandler swagger:operation GET /users/{username}/outbox s2sOutboxGet | ||||
|  |  | |||
|  | @ -29,10 +29,10 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type OutboxGetTestSuite struct { | ||||
|  |  | |||
|  | @ -22,10 +22,10 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/paging" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/paging" | ||||
| ) | ||||
| 
 | ||||
| // StatusRepliesGETHandler swagger:operation GET /users/{username}/statuses/{status}/replies s2sRepliesGet | ||||
|  |  | |||
|  | @ -28,12 +28,12 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/ap" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type RepliesGetTestSuite struct { | ||||
|  |  | |||
|  | @ -22,9 +22,9 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // StatusGETHandler serves the target status as an activitystreams NOTE so that other AP servers can parse it. | ||||
|  |  | |||
|  | @ -28,10 +28,10 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type StatusGetTestSuite struct { | ||||
|  |  | |||
|  | @ -20,10 +20,10 @@ package users | |||
| import ( | ||||
| 	"net/http" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/uris" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/uris" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
|  | @ -18,21 +18,21 @@ | |||
| package users_test | ||||
| 
 | ||||
| import ( | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/admin" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/email" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/federation" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/middleware" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/typeutils" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/admin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/email" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/federation" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/middleware" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/typeutils" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type UserStandardTestSuite struct { | ||||
|  |  | |||
|  | @ -22,9 +22,9 @@ import ( | |||
| 	"net/http" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // UsersGETHandler should be served at https://example.org/users/:username. | ||||
|  |  | |||
|  | @ -27,10 +27,10 @@ import ( | |||
| 
 | ||||
| 	"code.superseriousbusiness.org/activity/streams" | ||||
| 	"code.superseriousbusiness.org/activity/streams/vocab" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/activitypub/users" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type UserGetTestSuite struct { | ||||
|  |  | |||
|  | @ -18,14 +18,14 @@ | |||
| package api | ||||
| 
 | ||||
| import ( | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/auth" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/middleware" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oidc" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/router" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/auth" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/middleware" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oidc" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/router" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| ) | ||||
| 
 | ||||
| type Auth struct { | ||||
|  |  | |||
|  | @ -20,10 +20,10 @@ package auth | |||
| import ( | ||||
| 	"net/http" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oidc" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oidc" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
|  | @ -22,24 +22,24 @@ import ( | |||
| 	"fmt" | ||||
| 	"net/http/httptest" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/admin" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/auth" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/email" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/federation" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/middleware" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oidc" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-contrib/sessions" | ||||
| 	"github.com/gin-contrib/sessions/memstore" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/admin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/auth" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/email" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/federation" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/middleware" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oidc" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type AuthStandardTestSuite struct { | ||||
|  |  | |||
|  | @ -22,14 +22,14 @@ import ( | |||
| 	"net/url" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oauth" | ||||
| 	"github.com/gin-contrib/sessions" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/google/uuid" | ||||
| 	apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oauth" | ||||
| ) | ||||
| 
 | ||||
| // AuthorizeGETHandler should be served as | ||||
|  |  | |||
|  | @ -7,11 +7,11 @@ import ( | |||
| 	"testing" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/auth" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/util" | ||||
| 	"github.com/gin-contrib/sessions" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/auth" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/util" | ||||
| ) | ||||
| 
 | ||||
| type AuthAuthorizeTestSuite struct { | ||||
|  |  | |||
|  | @ -26,17 +26,17 @@ import ( | |||
| 	"slices" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oauth" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oidc" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/validate" | ||||
| 	"github.com/gin-contrib/sessions" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/google/uuid" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oauth" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oidc" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/validate" | ||||
| ) | ||||
| 
 | ||||
| // extraInfo wraps a form-submitted username and transmitted name | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ package auth | |||
| import ( | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| func TestAdminGroup(t *testing.T) { | ||||
|  |  | |||
|  | @ -20,9 +20,9 @@ package auth | |||
| import ( | ||||
| 	"errors" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"github.com/gin-contrib/sessions" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| ) | ||||
| 
 | ||||
| // OOBTokenGETHandler parses the OAuth code from the query | ||||
|  |  | |||
|  | @ -20,10 +20,10 @@ package auth | |||
| import ( | ||||
| 	"net/http" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	oautherr "code.superseriousbusiness.org/oauth2/v4/errors" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| ) | ||||
| 
 | ||||
| // TokenRevokePOSTHandler swagger:operation POST /oauth/revoke oauthTokenRevoke | ||||
|  |  | |||
|  | @ -25,9 +25,9 @@ import ( | |||
| 	"net/http" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type RevokeTestSuite struct { | ||||
|  |  | |||
|  | @ -25,15 +25,15 @@ import ( | |||
| 	"slices" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oauth" | ||||
| 	"codeberg.org/gruf/go-byteutil" | ||||
| 	"github.com/gin-contrib/sessions" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/pquerna/otp/totp" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oauth" | ||||
| 	"golang.org/x/crypto/bcrypt" | ||||
| ) | ||||
| 
 | ||||
|  |  | |||
|  | @ -21,9 +21,9 @@ import ( | |||
| 	"net/http" | ||||
| 	"net/url" | ||||
| 
 | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oauth" | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oauth" | ||||
| 
 | ||||
| 	"github.com/gin-gonic/gin" | ||||
| ) | ||||
|  |  | |||
|  | @ -25,11 +25,11 @@ import ( | |||
| 	"testing" | ||||
| 	"time" | ||||
| 
 | ||||
| 	apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type TokenTestSuite struct { | ||||
|  |  | |||
|  | @ -20,12 +20,12 @@ package auth | |||
| import ( | ||||
| 	"errors" | ||||
| 
 | ||||
| 	apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtserror" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oauth" | ||||
| 	"github.com/gin-contrib/sessions" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oauth" | ||||
| ) | ||||
| 
 | ||||
| func (m *Module) mustClearSession(s sessions.Session) { | ||||
|  |  | |||
|  | @ -20,47 +20,47 @@ package api | |||
| import ( | ||||
| 	"time" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/admin" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/announcements" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/apps" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/blocks" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/bookmarks" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/conversations" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/customemojis" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/exports" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/favourites" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/featuredtags" | ||||
| 	filtersV1 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v1" | ||||
| 	filtersV2 "code.superseriousbusiness.org/gotosocial/internal/api/client/filters/v2" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/followedtags" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/followrequests" | ||||
| 	importdata "code.superseriousbusiness.org/gotosocial/internal/api/client/import" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/instance" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/interactionpolicies" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/interactionrequests" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/lists" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/markers" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/mutes" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/notifications" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/polls" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/preferences" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/push" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/reports" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/search" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/statuses" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/streaming" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/tags" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/timelines" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/tokens" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/user" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/middleware" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/router" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/admin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/announcements" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/apps" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/blocks" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/bookmarks" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/conversations" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/customemojis" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/exports" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/favourites" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/featuredtags" | ||||
| 	filtersV1 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v1" | ||||
| 	filtersV2 "github.com/superseriousbusiness/gotosocial/internal/api/client/filters/v2" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/followedtags" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/followrequests" | ||||
| 	importdata "github.com/superseriousbusiness/gotosocial/internal/api/client/import" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/instance" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/interactionpolicies" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/interactionrequests" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/lists" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/markers" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/mutes" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/notifications" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/polls" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/preferences" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/push" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/reports" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/search" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/statuses" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/streaming" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/tags" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/timelines" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/tokens" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/user" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/middleware" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/router" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| ) | ||||
| 
 | ||||
| type Client struct { | ||||
|  |  | |||
|  | @ -23,21 +23,21 @@ import ( | |||
| 	"net/http" | ||||
| 	"net/http/httptest" | ||||
| 
 | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/admin" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/api/client/accounts" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/config" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/db" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/email" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/federation" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/gtsmodel" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/media" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/oauth" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/processing" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/state" | ||||
| 	"code.superseriousbusiness.org/gotosocial/internal/storage" | ||||
| 	"code.superseriousbusiness.org/gotosocial/testrig" | ||||
| 	"github.com/gin-gonic/gin" | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/admin" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/client/accounts" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/email" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/federation" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/media" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/oauth" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/processing" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/storage" | ||||
| 	"github.com/superseriousbusiness/gotosocial/testrig" | ||||
| ) | ||||
| 
 | ||||
| type AccountStandardTestSuite struct { | ||||
|  |  | |||
Some files were not shown because too many files have changed in this diff Show more
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue