Commit 5efe9536fe8e1c2ae6732d4b1b9dc07ef427c69e
plugins/friends: only allow feeds as friends (not messages)
Matt McKegg committed on 10/5/2016, 10:09:42 AMParent: 40a02777b9360201097c3e7114cb14f34e03a4ad
Files changed
plugins/friends.js | changed |
plugins/friends.js | ||
---|---|---|
@@ -47,9 +47,9 @@ | ||
47 | 47 … | } |
48 | 48 … | |
49 | 49 … | var c = msg.value.content |
50 | 50 … | if (c.type == 'contact') { |
51 | - mlib.asLinks(c.contact).forEach(function (link) { | |
51 … | + mlib.asLinks(c.contact, 'feed').forEach(function (link) { | |
52 | 52 … | if ('following' in c) { |
53 | 53 … | if (c.following) |
54 | 54 … | graphs.follow.edge(msg.value.author, link.link, true) |
55 | 55 … | else |
Built with git-ssb-web