diff --git a/src/engines/Mastodon.ts b/src/engines/Mastodon.ts index 539beed..355d398 100644 --- a/src/engines/Mastodon.ts +++ b/src/engines/Mastodon.ts @@ -1,77 +1,45 @@ -import { - ScrapeEngineBase, - ScrapeResult, - ScrapedPost, - ScrapeEngineFeature, - ContentType, -} from "../ScrapeEngine.js"; +import { ScrapeEngineBase, ScrapeResult, ScrapedPost, ScrapeEngineFeature, ContentType} from "../ScrapeEngine.js"; interface Attachment { - url: string; // original media URL, ?sensitive=true stripped + url: string; // original media URL contentType: ContentType; } -/** - * Handles Mastodon-compatible instances, including forks such as baraag.net. - * - * Mastodon renders media in three different shapes: - * - * 1. Images: - * - * - * - * → read the anchor href. - * - * 2. GIFVs: - * - * → read the