diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/follow_suggestion.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/follow_suggestion.rb b/app/models/follow_suggestion.rb index e92546134..df1d77e6c 100644 --- a/app/models/follow_suggestion.rb +++ b/app/models/follow_suggestion.rb @@ -7,8 +7,8 @@ START a=node:account_index(Account={id}) MATCH (a)-[:follows]->(b)-[:follows]->(c) WHERE a <> c AND NOT (a)-[:follows]->(c) -RETURN DISTINCT c.account_id, c.nodeRank -ORDER BY c.nodeRank +RETURN DISTINCT c.account_id, count(b), c.nodeRank +ORDER BY count(b) DESC, c.nodeRank DESC LIMIT {limit} END |