Removed inop actor merge avatar conflict ignore.
This commit is contained in:
@@ -867,12 +867,9 @@ export async function mergeActors(targetActorId, sourceActorIds, comment, reqUse
|
|||||||
.update('alias_for', targetActorId)
|
.update('alias_for', targetActorId)
|
||||||
.whereIn('id', sourceActorIds)
|
.whereIn('id', sourceActorIds)
|
||||||
.returning(['id', 'alias_for']),
|
.returning(['id', 'alias_for']),
|
||||||
// some avatars are not matched to a profile, need to investigate why this happens and the avatar table needs a dedicated actor field
|
|
||||||
trx('actors_avatars')
|
trx('actors_avatars')
|
||||||
.update('actor_id', targetActorId)
|
.update('actor_id', targetActorId)
|
||||||
.whereIn('actor_id', sourceActorIds)
|
.whereIn('actor_id', sourceActorIds),
|
||||||
.onConflict()
|
|
||||||
.ignore(),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// multiple source actors may provide profiles for the same entity, but we can only assign one to the target actor; prefer the newest
|
// multiple source actors may provide profiles for the same entity, but we can only assign one to the target actor; prefer the newest
|
||||||
|
|||||||
Reference in New Issue
Block a user