mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Add moderation threshold logging
This commit is contained in:
1 parent
0a520287a0
commit
e442b9d31c
5 files changed
+241
-12
No files matched your search
@@ -1,8 +1,10 @@
|
||||
// js/feedEngine/stages.js
|
||||
|
||||
import { getApplication } from "../applicationContext.js";
|
||||
import { IS_DEV_MODE } from "../config.js";
|
||||
import nostrService from "../services/nostrService.js";
|
||||
import moderationService from "../services/moderationService.js";
|
||||
import logger from "../utils/logger.js";
|
||||
import { dedupeToNewestByRoot } from "../utils/videoDeduper.js";
|
||||
import { isPlainObject, toSet } from "./utils.js";
|
||||
|
||||
@@ -500,6 +502,17 @@ export function createModerationStage({
|
||||
metadataModeration.trustedMuteCount = trustedMuteCount;
|
||||
item.metadata.moderation = metadataModeration;
|
||||
|
||||
if (IS_DEV_MODE) {
|
||||
logger.dev.debug("[feedEngine/moderation] metadata.moderation updated", {
|
||||
stage: stageName,
|
||||
videoId: videoId || null,
|
||||
blockAutoplay,
|
||||
blurThumbnail,
|
||||
trustedCount,
|
||||
reportType: normalizedReportType,
|
||||
});
|
||||
}
|
||||
|
||||
if (!video.moderation || typeof video.moderation !== "object") {
|
||||
video.moderation = {};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user