mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 18:02:25 -05:00 
			
		
		
		
	fiddle-de-dee!
This commit is contained in:
		
					parent
					
						
							
								74bc0feee7
							
						
					
				
			
			
				commit
				
					
						23e2c4a567
					
				
			
		
					 9 changed files with 360 additions and 40 deletions
				
			
		|  | @ -18,7 +18,12 @@ | |||
| 
 | ||||
| package util | ||||
| 
 | ||||
| import "fmt" | ||||
| import ( | ||||
| 	"fmt" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db/model" | ||||
| 	"github.com/superseriousbusiness/gotosocial/pkg/mastotypes" | ||||
| ) | ||||
| 
 | ||||
| type URIs struct { | ||||
| 	HostURL     string | ||||
|  | @ -48,7 +53,7 @@ func GenerateURIs(username string, protocol string, host string) *URIs { | |||
| 		HostURL:       hostURL, | ||||
| 		UserURL:       userURL, | ||||
| 		StatusesURL:   statusesURL, | ||||
| 		 | ||||
| 
 | ||||
| 		UserURI:       userURI, | ||||
| 		StatusesURI:   statusesURI, | ||||
| 		InboxURI:      inboxURI, | ||||
|  | @ -57,3 +62,13 @@ func GenerateURIs(username string, protocol string, host string) *URIs { | |||
| 		CollectionURI: collectionURI, | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| func ParseGTSVisFromMastoVis(m mastotypes.Visibility) model.Visibility { | ||||
| 	// TODO: convert a masto vis into a gts vis | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func ParseMastoVisFromGTSVis(m model.Visibility) mastotypes.Visibility { | ||||
| 	// TODO: convert a gts vis into a masto vis | ||||
| 	return "" | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue