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