diff options
Diffstat (limited to 'internal/processing/account/update.go')
| -rw-r--r-- | internal/processing/account/update.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/processing/account/update.go b/internal/processing/account/update.go index 60d2cb8f6..83a046a25 100644 --- a/internal/processing/account/update.go +++ b/internal/processing/account/update.go @@ -77,8 +77,16 @@ func (p *Processor) Update(ctx context.Context, account *gtsmodel.Account, form acctColumns = append(acctColumns, "discoverable") } - if form.Bot != nil { - account.ActorType = gtsmodel.AccountActorTypeService + if bot := form.Bot; bot != nil { + if *bot { + // Mark account as an Application. + // See: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-application + account.ActorType = gtsmodel.AccountActorTypeApplication + } else { + // Mark account as a Person. + // See: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-person + account.ActorType = gtsmodel.AccountActorTypePerson + } acctColumns = append(acctColumns, "actor_type") } |
