mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 13:17:35 +00:00
Fix follow suggestions order
This commit is contained in:
parent
df2c0b8dad
commit
6e0b3ddb0d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue