summaryrefslogtreecommitdiff
path: root/internal/db/bundb/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/bundb/admin.go')
-rw-r--r--internal/db/bundb/admin.go29
1 files changed, 15 insertions, 14 deletions
diff --git a/internal/db/bundb/admin.go b/internal/db/bundb/admin.go
index 0666cf8a8..dcf51c6a5 100644
--- a/internal/db/bundb/admin.go
+++ b/internal/db/bundb/admin.go
@@ -120,20 +120,21 @@ func (a *adminDB) NewSignup(ctx context.Context, newSignup gtsmodel.NewSignup) (
}
account = &gtsmodel.Account{
- ID: accountID,
- Username: newSignup.Username,
- DisplayName: newSignup.Username,
- URI: uris.UserURI,
- URL: uris.UserURL,
- InboxURI: uris.InboxURI,
- OutboxURI: uris.OutboxURI,
- FollowingURI: uris.FollowingURI,
- FollowersURI: uris.FollowersURI,
- FeaturedCollectionURI: uris.FeaturedCollectionURI,
- ActorType: gtsmodel.AccountActorTypePerson,
- PrivateKey: privKey,
- PublicKey: &privKey.PublicKey,
- PublicKeyURI: uris.PublicKeyURI,
+ ID: accountID,
+ Username: newSignup.Username,
+ DisplayName: newSignup.Username,
+ URI: uris.UserURI,
+ URL: uris.UserURL,
+ InboxURI: uris.InboxURI,
+ OutboxURI: uris.OutboxURI,
+ FollowingURI: uris.FollowingURI,
+ FollowersURI: uris.FollowersURI,
+ FeaturedCollectionURI: uris.FeaturedCollectionURI,
+ ActorType: gtsmodel.AccountActorTypePerson,
+ PrivateKey: privKey,
+ PublicKey: &privKey.PublicKey,
+ PublicKeyURI: uris.PublicKeyURI,
+ HidesCcPublicFromUnauthedWeb: util.Ptr(true), // GtS default to hide unlisted.
}
// Insert the new account!