Browse Source

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

master
Pasture Pastureson 3 weeks ago
parent
commit
7a9bd78645
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/BirdsiteLive.Domain/StatusService.cs

+ 2
- 2
src/BirdsiteLive.Domain/StatusService.cs 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"));


Loading…
Cancel
Save