添加html页面
This commit is contained in:
+4
-3
@@ -96,6 +96,7 @@ import {
|
||||
objectUrl,
|
||||
profileUrl,
|
||||
safeFileName,
|
||||
statusUrl,
|
||||
tokenString
|
||||
} from "./util";
|
||||
|
||||
@@ -626,7 +627,7 @@ async function publishStatus(env: Env, user: User, input: StatusCreateInput): Pr
|
||||
activityId,
|
||||
objectId,
|
||||
now,
|
||||
objectId
|
||||
statusUrl(env, user, statusId)
|
||||
)
|
||||
.run();
|
||||
|
||||
@@ -959,7 +960,7 @@ export async function deleteStatusEndpoint(request: Request, env: Env, statusId:
|
||||
|
||||
await env.DB.prepare(
|
||||
"INSERT INTO deleted_statuses (id, user_id, object_id, url, deleted_at) VALUES (?, ?, ?, ?, ?)"
|
||||
).bind(status.id, user.id, status.object_id, status.url, new Date().toISOString()).run();
|
||||
).bind(status.id, user.id, status.object_id, statusUrl(env, user, status.id), new Date().toISOString()).run();
|
||||
await env.DB.prepare("DELETE FROM statuses WHERE id = ?").bind(status.id).run();
|
||||
await env.DB.prepare("DELETE FROM media WHERE status_id = ?").bind(status.id).run();
|
||||
await env.DB.prepare("DELETE FROM mentions WHERE status_id = ?").bind(status.id).run();
|
||||
@@ -1885,7 +1886,7 @@ function statusRecord(env: Env, status: Status, user: User, context: StatusSeria
|
||||
return {
|
||||
id: status.id,
|
||||
uri: status.object_id,
|
||||
url: status.url,
|
||||
url: statusUrl(env, user, status.id),
|
||||
account: context.accountByUserId.get(user.id) ?? {
|
||||
id: user.id,
|
||||
username: user.username,
|
||||
|
||||
Reference in New Issue
Block a user