From c24822a8fdbc0647aa983fe7d784864ec3b9b854 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Apr 2021 13:44:58 +0200 Subject: [PATCH] Don't save other attributes when set as refreshed --- server/lib/activitypub/process/process-delete.ts | 13 +++++++++++-- server/models/video/video.ts | 6 ++++-- 2 files changed, 15 insertions(+), 4 deletions(-) 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