Update Mastodon.ts

Fixed terminology.
master
Nes370 2026-10-11 07:27:26 -07:00
parent 0a69309627
commit cecb0f0f30
1 changed files with 2 additions and 5 deletions

View File

@ -33,10 +33,7 @@ export default class Mastodon extends ScrapeEngineBase {
name = "mastodon";
features: ScrapeEngineFeature[] = ["content", "rating", "source"];
notes = [
"Uses the original attachment URL from the media gallery anchor,",
"not the scaled-down preview image.",
"Defaults rating to 'safe'; bumps to 'explicit' when the",
"attachment is marked sensitive in the source.",
"Rating is assumed to be unsafe when source is marked sensitive."
];
// Explicit hosts we claim. Other Mastodon instances are picked up by the
@ -67,7 +64,7 @@ export default class Mastodon extends ScrapeEngineBase {
// Baraag is an adult-focused instance: default to safe,
// and bump to explicit when the source flags the attachment.
post.rating = att.sensitive ? "explicit" : "safe";
post.rating = att.sensitive ? "unsafe" : "safe";
// Cached preview as a poster frame for videos.
if (att.contentType === "video" && att.previewUrl) {