aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-05-11 11:06:12 +0200
committerChocobozzz <me@florianbigard.com>2020-05-11 11:06:12 +0200
commit0f06c4de69e2a2af04da6447a4cc0f9f99b5f3d8 (patch)
treec14f40ed48a8bd23040b538c9ec0c78eeb876b05 /server/models/activitypub
parent95cd31f1fe3311c873bee8185e6b07398a775a47 (diff)
downloadPeerTube-0f06c4de69e2a2af04da6447a4cc0f9f99b5f3d8.tar.gz
PeerTube-0f06c4de69e2a2af04da6447a4cc0f9f99b5f3d8.tar.zst
PeerTube-0f06c4de69e2a2af04da6447a4cc0f9f99b5f3d8.zip
Add unique key on actor preferredUsername
Diffstat (limited to 'server/models/activitypub')
-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 e547d2c0c..34bc91706 100644
--- a/server/models/activitypub/actor.ts
+++ b/server/models/activitypub/actor.ts
@@ -123,13 +123,13 @@ export const unusedActorAttributesForAPI = [
123 } 123 }
124 } 124 }
125 }, 125 },
126 // { 126 {
127 // fields: [ 'preferredUsername' ], 127 fields: [ 'preferredUsername' ],
128 // unique: true, 128 unique: true,
129 // where: { 129 where: {
130 // serverId: null 130 serverId: null
131 // } 131 }
132 // }, 132 },
133 { 133 {
134 fields: [ 'inboxUrl', 'sharedInboxUrl' ] 134 fields: [ 'inboxUrl', 'sharedInboxUrl' ]
135 }, 135 },