Now I can render blog messages, too.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4068 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-12-03 02:18:48 +00:00
parent 8115881c08
commit 1a91b56a1d
3 changed files with 50 additions and 1 deletions

View File

@ -660,6 +660,10 @@ async function blobHandler(request, response, blobId, uri) {
return;
}
response.writeHead(200, {"Content-Type": "text/plain; charset=utf-8"});
response.end("/" + newBlobId);
} else if (blobId === '') {
let newBlobId = await ssb.blobStore(request.body);
response.writeHead(200, {"Content-Type": "text/plain; charset=utf-8"});
response.end("/" + newBlobId);
} else {