Adding back accidentally deleted code

This commit is contained in:
Rogerio Chaves 2020-04-18 08:55:18 +02:00
parent 54a66a9e3f
commit c376a4f065
No known key found for this signature in database
GPG Key ID: E6AF5440509B1D94
2 changed files with 10 additions and 2 deletions

View File

@ -214,6 +214,16 @@ router.post("/signup", async (req, res) => {
key.private = "[removed]";
debug("Generated key", key);
await ssbServer.identities.publishAs({
id: profileId,
private: false,
content: {
type: "about",
about: profileId,
name: name,
...(pictureLink ? { image: pictureLink } : {}),
},
});
debug("Published about", { about: profileId, name, image: pictureLink });
await queries.autofollow(ssbServer, profileId);

View File

@ -312,8 +312,6 @@ const progress = (ssbServer, callback) => {
};
const autofollow = async (ssbServer, id) => {
console.log("ssbServer.id", ssbServer.id);
const isFollowing = await ssbServer.friends.isFollowing({
source: ssbServer.id,
dest: id,