Add a button in the profile editor to ask the server to follow you. I'm hoping this helps replicating accounts that are otherwise difficult to discover.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4558 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-10-20 14:37:24 +00:00
parent 6dae2f0749
commit 6db1a097aa
6 changed files with 188 additions and 15 deletions

View File

@ -421,6 +421,13 @@ async function getProcessBlob(blobId, key, options) {
return ssb.privateMessageDecrypt(process.credentials.session.name, id, message);
}
};
imports.ssb.setServerFollowingMe = function(id, following) {
if (process.credentials &&
process.credentials.session &&
process.credentials.session.name) {
return ssb.setServerFollowingMe(process.credentials.session.name, id, following);
}
};
imports.fetch = function(url, options) {
return http.fetch(url, options, gGlobalSettings.fetch_hosts);
}
@ -683,7 +690,7 @@ async function blobHandler(request, response, blobId, uri) {
if (!uri) {
response.writeHead(303, {"Location": (request.client.tls ? 'https://' : 'http://') + request.headers.host + blobId + '/', "Content-Length": "0"});
response.end(data);
response.end();
return;
}