Permalink
Browse files

push the initial url as a trusted url

Signed-off-by: Sam Pullara <spullara@yahoo.com>
  • Loading branch information...
ptarjan authored and spullara committed Jun 28, 2009
1 parent 820048a commit 1aa65305f835abed18c0ee98ce1dbcc11e626fbb
Showing with 3 additions and 0 deletions.
  1. +3 −0 socialgraph/socialgraph.trustsme.xml
@@ -36,6 +36,9 @@ var addAlias = function (url) {
var json = JSON.parse(r);
var canonical = json.canonical_mapping[url];
+ // Trust the cannonical form
+ if (ret.indexOf(canonical) == -1)
+ ret.push(canonical);
// Look at inlinks to the cannonical URI
var nodes = json.nodes[canonical].nodes_referenced_by;

0 comments on commit 1aa6530

Please sign in to comment.