summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/account.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-07-06 13:29:11 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-06 13:29:11 +0200
commit356857921897c0fb91add7f94e8944dd7e6c57b5 (patch)
tree2f6d8d42b6eba0ef3bc693c04be712bcef2af1d3 /internal/gtsmodel/account.go
parentDomain block (#76) (diff)
downloadgotosocial-356857921897c0fb91add7f94e8944dd7e6c57b5.tar.xz
Blocklist import (#77)
* first steps on importing blocklists * unblock domains properly
Diffstat (limited to 'internal/gtsmodel/account.go')
-rw-r--r--internal/gtsmodel/account.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gtsmodel/account.go b/internal/gtsmodel/account.go
index cf1bcec0a..e560601b8 100644
--- a/internal/gtsmodel/account.go
+++ b/internal/gtsmodel/account.go
@@ -115,7 +115,7 @@ type Account struct {
CRYPTO FIELDS
*/
- // Privatekey for validating activitypub requests, will obviously only be defined for local accounts
+ // Privatekey for validating activitypub requests, will only be defined for local accounts
PrivateKey *rsa.PrivateKey
// Publickey for encoding activitypub requests, will be defined for both local and remote accounts
PublicKey *rsa.PublicKey
@@ -134,8 +134,8 @@ type Account struct {
SuspendedAt time.Time `pg:"type:timestamp"`
// Should we hide this account's collections?
HideCollections bool
- // id of the user that suspended this account through an admin action
- SuspensionOrigin string
+ // id of the database entry that caused this account to become suspended -- can be an account ID or a domain block ID
+ SuspensionOrigin string `pg:"type:CHAR(26)"`
}
// Field represents a key value field on an account, for things like pronouns, website, etc.