feat: Enable deletion of swarm-originated posts and replies by propagating requests to remote nodes and improve swarm ID parsing.

This commit is contained in:
Christomatt
2026-01-26 14:56:05 +01:00
parent 74ec163625
commit 38ddede873
4 changed files with 179 additions and 79 deletions
+2 -1
View File
@@ -51,10 +51,11 @@ export async function GET(request: NextRequest, context: RouteContext) {
});
const author = post.author as any;
return NextResponse.json({
post: {
id: post.id,
apId: post.apId, // Expose apId for swarm coordination (e.g. deletion recovery)
content: post.content,
createdAt: post.createdAt.toISOString(),
likesCount: post.likesCount,