diff options
Diffstat (limited to 'server/models/activitypub')
-rw-r--r-- | server/models/activitypub/actor.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts index 38a689fea..267032e2a 100644 --- a/server/models/activitypub/actor.ts +++ b/server/models/activitypub/actor.ts | |||
@@ -80,7 +80,8 @@ enum ScopeNames { | |||
80 | tableName: 'actor', | 80 | tableName: 'actor', |
81 | indexes: [ | 81 | indexes: [ |
82 | { | 82 | { |
83 | fields: [ 'url' ] | 83 | fields: [ 'url' ], |
84 | unique: true | ||
84 | }, | 85 | }, |
85 | { | 86 | { |
86 | fields: [ 'preferredUsername', 'serverId' ], | 87 | fields: [ 'preferredUsername', 'serverId' ], |
@@ -94,6 +95,13 @@ enum ScopeNames { | |||
94 | }, | 95 | }, |
95 | { | 96 | { |
96 | fields: [ 'avatarId' ] | 97 | fields: [ 'avatarId' ] |
98 | }, | ||
99 | { | ||
100 | fields: [ 'uuid' ], | ||
101 | unique: true | ||
102 | }, | ||
103 | { | ||
104 | fields: [ 'followersUrl' ] | ||
97 | } | 105 | } |
98 | ] | 106 | ] |
99 | }) | 107 | }) |