[backend/core] Use the fetched object id as the lock key in NoteService.ResolveNoteAsync

This commit is contained in:
Laura Hausmann 2024-12-19 21:22:25 +01:00
parent fbb9165bec
commit cf37567108
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -1365,7 +1365,7 @@ public class NoteService(
var actor = await userResolver.ResolveAsync(attrTo.Id, EnforceUriFlags);
using (await KeyedLocker.LockAsync(uri))
using (await KeyedLocker.LockAsync(fetchedNote.Id))
{
try
{