change default cw summary, also show summary if the tweet itself is marked as sensitive

This commit is contained in:
Miss Pasture 2021-11-19 03:39:46 -05:00
parent f6acf7f277
commit 7a9bd78645

View file

@ -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"));