]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit
Ensure local actors preferredName don't already exist
authorChocobozzz <me@florianbigard.com>
Thu, 5 Dec 2019 13:57:14 +0000 (14:57 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 5 Dec 2019 13:57:14 +0000 (14:57 +0100)
commit77e0851758595de2642b405cff8960f02ced60eb
tree6858298627b97a450eaef388ff7222e0e5a2e1c4
parent7b7d4e2a6adde8a8aa0b4c0048bddd448a6a0093
Ensure local actors preferredName don't already exist

Before applying this commit, check you don't have duplicates local
actors in your database:

select "preferredUsername" from actor where "serverId" is null group by "preferredUsername" having count(*) > 0

If you have some results, it seems you have duplicate channels/accounts.
For every entry, you'll have to change the preferredUsername of the
entry you want (so they are unique). The updated actors could have some
federations issues. Sorry.
server/models/activitypub/actor.ts
shared/models/videos/video-resolution.enum.ts