fix 编辑嘟文

This commit is contained in:
浪子
2026-05-16 10:13:22 +08:00
parent d39940cd59
commit ad6a8b0dcf
7 changed files with 197 additions and 9 deletions
+4
View File
@@ -44,6 +44,7 @@ import {
getPushSubscription,
getRelationships,
getScheduledStatus,
getStatusSource,
getStatusEndpoint,
hashtagInfo,
hashtagTimeline,
@@ -72,6 +73,7 @@ import {
token,
trendsTags,
updateMarkers,
updateStatusEndpoint,
unbookmarkStatus,
unfavouriteStatus,
unfollowAccount,
@@ -159,7 +161,9 @@ async function route(request: Request, env: Env): Promise<Response> {
if (method === "POST" && (m = path.match(/^\/api\/v1\/follow_requests\/([^/]+)\/reject$/))) return rejectFollowRequest(request, env, decodeURIComponent(m[1]));
if (method === "POST" && path === "/api/v1/statuses") return createStatus(request, env);
if (method === "GET" && (m = path.match(/^\/api\/v1\/statuses\/([^/]+)\/source$/))) return getStatusSource(request, env, decodeURIComponent(m[1]));
if (method === "GET" && (m = path.match(/^\/api\/v1\/statuses\/([^/]+)$/))) return getStatusEndpoint(request, env, decodeURIComponent(m[1]));
if ((method === "PUT" || method === "PATCH") && (m = path.match(/^\/api\/v1\/statuses\/([^/]+)$/))) return updateStatusEndpoint(request, env, decodeURIComponent(m[1]));
if (method === "DELETE" && (m = path.match(/^\/api\/v1\/statuses\/([^/]+)$/))) return deleteStatusEndpoint(request, env, decodeURIComponent(m[1]));
if (method === "GET" && (m = path.match(/^\/api\/v1\/statuses\/([^/]+)\/context$/))) return statusContext(env, decodeURIComponent(m[1]), request);
if (method === "POST" && (m = path.match(/^\/api\/v1\/statuses\/([^/]+)\/favourite$/))) return favouriteStatus(request, env, decodeURIComponent(m[1]));