Merge pull request #279 from cloudflare/sven/public-statuses

Make /api/v1/accounts/[id]/statuses public
pull/284/head
Sven Sauleau 2023-02-13 16:59:32 +00:00 zatwierdzone przez GitHub
commit 1194bdca90
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -58,6 +58,7 @@ export async function main(context: EventContext<Env, any, any>) {
url.pathname === '/.well-known/webfinger' ||
url.pathname === '/api/v1/trends/statuses' ||
url.pathname === '/api/v1/trends/links' ||
/^\/api\/v1\/accounts\/(.*)\/statuses$/.test(url.pathname) ||
url.pathname.startsWith('/api/v1/tags/') ||
url.pathname.startsWith('/api/v1/timelines/tag/') ||
url.pathname.startsWith('/ap/') // all ActivityPub endpoints