aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-12 10:24:08 +0100
committerChocobozzz <me@florianbigard.com>2019-12-12 10:56:34 +0100
commit458218d2baf286835754c666cfc635cce467c24e (patch)
tree87f18f6d833d4c9d42158ccbaf3a875e953103bc
parent729c0f4d419ef5b6eb59d290950c3378f9f17191 (diff)
downloadPeerTube-458218d2baf286835754c666cfc635cce467c24e.tar.gz
PeerTube-458218d2baf286835754c666cfc635cce467c24e.tar.zst
PeerTube-458218d2baf286835754c666cfc635cce467c24e.zip
Don't add the unique preferredUsername index for now
We'll do it in the next release so admins can prepare it
-rw-r--r--server/models/activitypub/actor.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/models/activitypub/actor.ts b/server/models/activitypub/actor.ts
index e539b579c..71db44b2f 100644
--- a/server/models/activitypub/actor.ts
+++ b/server/models/activitypub/actor.ts
@@ -122,13 +122,13 @@ export const unusedActorAttributesForAPI = [
122 } 122 }
123 } 123 }
124 }, 124 },
125 { 125 // {
126 fields: [ 'preferredUsername' ], 126 // fields: [ 'preferredUsername' ],
127 unique: true, 127 // unique: true,
128 where: { 128 // where: {
129 serverId: null 129 // serverId: null
130 } 130 // }
131 }, 131 // },
132 { 132 {
133 fields: [ 'inboxUrl', 'sharedInboxUrl' ] 133 fields: [ 'inboxUrl', 'sharedInboxUrl' ]
134 }, 134 },