mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 00:26:15 -06:00
fiddling with federation
This commit is contained in:
parent
07268e6f1e
commit
74d5a0588f
15 changed files with 587 additions and 416 deletions
10
internal/typeutils/astointernal.go
Normal file
10
internal/typeutils/astointernal.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package typeutils
|
||||
|
||||
import (
|
||||
"github.com/go-fed/activity/streams/vocab"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db/gtsmodel"
|
||||
)
|
||||
|
||||
func (c *converter) ASPersonToAccount(person vocab.ActivityStreamsPerson) (*gtsmodel.Account, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
|
@ -85,6 +85,9 @@ type TypeConverter interface {
|
|||
ACTIVITYSTREAMS MODEL TO INTERNAL (gts) MODEL
|
||||
*/
|
||||
|
||||
// ASPersonToAccount converts an activitystreams person into a gts model account
|
||||
ASPersonToAccount(person vocab.ActivityStreamsPerson) (*gtsmodel.Account, error)
|
||||
|
||||
/*
|
||||
INTERNAL (gts) MODEL TO ACTIVITYSTREAMS MODEL
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue