mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 12:07:31 -06:00
change muchos things
This commit is contained in:
parent
a530a33192
commit
b95c80def6
70 changed files with 999 additions and 570 deletions
|
|
@ -94,15 +94,15 @@ func (c *converter) ASRepresentationToAccount(ctx context.Context, accountable a
|
|||
|
||||
// check for bot and actor type
|
||||
switch accountable.GetTypeName() {
|
||||
case gtsmodel.ActivityStreamsPerson, gtsmodel.ActivityStreamsGroup, gtsmodel.ActivityStreamsOrganization:
|
||||
case ap.ActorPerson, ap.ActorGroup, ap.ActorOrganization:
|
||||
// people, groups, and organizations aren't bots
|
||||
acct.Bot = false
|
||||
// apps and services are
|
||||
case gtsmodel.ActivityStreamsApplication, gtsmodel.ActivityStreamsService:
|
||||
case ap.ActorApplication, ap.ActorService:
|
||||
acct.Bot = true
|
||||
default:
|
||||
// we don't know what this is!
|
||||
return nil, fmt.Errorf("type name %s not recognised or not convertible to gtsmodel.ActivityStreamsActor", accountable.GetTypeName())
|
||||
return nil, fmt.Errorf("type name %s not recognised or not convertible to ap.ActivityStreamsActor", accountable.GetTypeName())
|
||||
}
|
||||
acct.ActorType = accountable.GetTypeName()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue