mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-27 22:24:42 +02:00
fix(backend): Acquire lock of Announce object in announceNote even if it is from a relay actor (#17356)
fix(backend): Always acquire lock of Announce object in announceNote
This commit is contained in:
@@ -313,7 +313,8 @@ export class ApInboxService {
|
|||||||
// アナウンス先が許可されているかチェック
|
// アナウンス先が許可されているかチェック
|
||||||
if (!this.utilityService.isFederationAllowedUri(uri)) return;
|
if (!this.utilityService.isFederationAllowedUri(uri)) return;
|
||||||
|
|
||||||
const unlock = await acquireApObjectLock(this.redisClient, uri);
|
const activityUri = getApId(activity);
|
||||||
|
const unlock = await acquireApObjectLock(this.redisClient, activityUri);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 既に同じURIを持つものが登録されていないかチェック
|
// 既に同じURIを持つものが登録されていないかチェック
|
||||||
|
|||||||
Reference in New Issue
Block a user