Adding back accidentally deleted code
This commit is contained in:
parent
54a66a9e3f
commit
c376a4f065
|
@ -214,6 +214,16 @@ router.post("/signup", async (req, res) => {
|
||||||
key.private = "[removed]";
|
key.private = "[removed]";
|
||||||
debug("Generated key", key);
|
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 });
|
debug("Published about", { about: profileId, name, image: pictureLink });
|
||||||
|
|
||||||
await queries.autofollow(ssbServer, profileId);
|
await queries.autofollow(ssbServer, profileId);
|
||||||
|
|
|
@ -312,8 +312,6 @@ const progress = (ssbServer, callback) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const autofollow = async (ssbServer, id) => {
|
const autofollow = async (ssbServer, id) => {
|
||||||
console.log("ssbServer.id", ssbServer.id);
|
|
||||||
|
|
||||||
const isFollowing = await ssbServer.friends.isFollowing({
|
const isFollowing = await ssbServer.friends.isFollowing({
|
||||||
source: ssbServer.id,
|
source: ssbServer.id,
|
||||||
dest: id,
|
dest: id,
|
||||||
|
|
Loading…
Reference in New Issue