Skip to content

Commit

Permalink
fix(route): mastodon user timeline by acct id route
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Sep 24, 2024
1 parent cc460c4 commit 1b66070
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions lib/routes/mastodon/account-id.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,35 @@
import { Route } from '@/types';
import { Route, ViewType } from '@/types';
import utils from './utils';
import { config } from '@/config';
import ConfigNotFoundError from '@/errors/types/config-not-found';

export const route: Route = {
path: '/account_id/:site/:account_id/statuses/:only_media?',
name: 'Unknown',
maintainers: ['notofoe'],
categories: ['social-media', 'popular'],
view: ViewType.SocialMedia,
example: '/mastodon/account_id/mas.to/109300507275095341/statuses/false',
parameters: {
site: 'instance address, only domain, no `http://` or `https://` protocol header',
account_id: 'account ID, you can get it from `https://INSTANCE/api/v1/accounts/lookup?acct=USERNAME` api',
only_media: {
description: 'whether only display media content, default to false, any value to true',
options: [
{ value: 'true', label: 'true' },
{ value: 'false', label: 'false' },
],
default: 'false',
},
},
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false,
},
name: 'User timeline (by account ID)',
maintainers: ['notofoe', 'pseudoyu'],
handler,
};

Expand Down

0 comments on commit 1b66070

Please sign in to comment.