projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95cd31f
)
Add unique key on actor preferredUsername
author
Chocobozzz
<me@florianbigard.com>
Mon, 11 May 2020 09:06:12 +0000
(11:06 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 11 May 2020 09:06:12 +0000
(11:06 +0200)
server/models/activitypub/actor.ts
patch
|
blob
|
history
diff --git
a/server/models/activitypub/actor.ts
b/server/models/activitypub/actor.ts
index e547d2c0c19b00cfd932d318bf4e492675c96e64..34bc917061749571b3a89d3e989e5bf02b206822 100644
(file)
--- a/
server/models/activitypub/actor.ts
+++ b/
server/models/activitypub/actor.ts
@@
-123,13
+123,13
@@
export const unusedActorAttributesForAPI = [
}
}
},
-
//
{
-
//
fields: [ 'preferredUsername' ],
-
//
unique: true,
-
//
where: {
-
//
serverId: null
-
//
}
-
//
},
+ {
+ fields: [ 'preferredUsername' ],
+ unique: true,
+ where: {
+ serverId: null
+ }
+ },
{
fields: [ 'inboxUrl', 'sharedInboxUrl' ]
},