From c24822a8fdbc0647aa983fe7d784864ec3b9b854 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Apr 2021 13:44:58 +0200 Subject: Don't save other attributes when set as refreshed --- server/lib/activitypub/process/process-delete.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'server/lib/activitypub') diff --git a/server/lib/activitypub/process/process-delete.ts b/server/lib/activitypub/process/process-delete.ts index 070ee0f1d..88a968318 100644 --- a/server/lib/activitypub/process/process-delete.ts +++ b/server/lib/activitypub/process/process-delete.ts @@ -7,7 +7,15 @@ import { VideoModel } from '../../../models/video/video' import { VideoCommentModel } from '../../../models/video/video-comment' import { VideoPlaylistModel } from '../../../models/video/video-playlist' import { APProcessorOptions } from '../../../types/activitypub-processor.model' -import { MAccountActor, MActor, MActorSignature, MChannelActor, MCommentOwnerVideo } from '../../../types/models' +import { + MAccountActor, + MActor, + MActorFull, + MActorSignature, + MChannelAccountActor, + MChannelActor, + MCommentOwnerVideo +} from '../../../types/models' import { markCommentAsDeleted } from '../../video-comment' import { forwardVideoRelatedActivity } from '../send/utils' @@ -30,7 +38,8 @@ async function processDeleteActivity (options: APProcessorOptions