From 7a9bd7864532a5cf95c012fa6a51f4e8d24184ff Mon Sep 17 00:00:00 2001 From: Miss Pasture Date: Fri, 19 Nov 2021 03:39:46 -0500 Subject: [PATCH] change default cw summary, also show summary if the tweet itself is marked as sensitive --- src/BirdsiteLive.Domain/StatusService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BirdsiteLive.Domain/StatusService.cs b/src/BirdsiteLive.Domain/StatusService.cs index 0d561a5..200b651 100644 --- a/src/BirdsiteLive.Domain/StatusService.cs +++ b/src/BirdsiteLive.Domain/StatusService.cs @@ -52,8 +52,8 @@ namespace BirdsiteLive.Domain string summary = null; var sensitive = _publicationRepository.IsSensitive(username); - if (sensitive) - summary = "Potential Content Warning"; + if (sensitive || tweet.IsSensitive) + summary = "Sensitive Content"; var extractedTags = _statusExtractor.Extract(tweet.MessageContent); _statisticsHandler.ExtractedStatus(extractedTags.tags.Count(x => x.type == "Mention"));