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([
|
const [targetActor, sourceActor] = await Promise.all([
|
||||||
knex('actors')
|
knex('actors')
|
||||||
.where('id', targetActorId)
|
.where('id', targetActorId)
|
||||||
|
.whereNull('entity_id')
|
||||||
|
.whereNull('alias_for')
|
||||||
.first(),
|
.first(),
|
||||||
knex('actors')
|
knex('actors')
|
||||||
.where('id', sourceActorId)
|
.where('id', sourceActorId)
|
||||||
|
|||||||
Reference in New Issue
Block a user