Enforcing global target actor in merge.
This commit is contained in:
@@ -559,6 +559,8 @@ export async function mergeActors(targetActorId, sourceActorId, reqUser) {
|
||||
const [targetActor, sourceActor] = await Promise.all([
|
||||
knex('actors')
|
||||
.where('id', targetActorId)
|
||||
.whereNull('entity_id')
|
||||
.whereNull('alias_for')
|
||||
.first(),
|
||||
knex('actors')
|
||||
.where('id', sourceActorId)
|
||||
|
||||
Reference in New Issue
Block a user