Fix follow suggestions ranking
parent
e5bcf8040c
commit
52a5ad8207
|
@ -52,6 +52,10 @@ const SuggestionsBox = React.createClass({
|
||||||
render () {
|
render () {
|
||||||
const accounts = this.props.accounts.take(3);
|
const accounts = this.props.accounts.take(3);
|
||||||
|
|
||||||
|
if (account.size === 0) {
|
||||||
|
return <div />;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={outerStyle}>
|
<div style={outerStyle}>
|
||||||
<strong style={headerStyle}>Who to follow</strong>
|
<strong style={headerStyle}>Who to follow</strong>
|
||||||
|
|
|
@ -7,7 +7,7 @@ START a=node:account_index(Account={id})
|
||||||
MATCH (a)-[:follows]->(b)-[:follows]->(c)
|
MATCH (a)-[:follows]->(b)-[:follows]->(c)
|
||||||
WHERE a <> c
|
WHERE a <> c
|
||||||
AND NOT (a)-[:follows]->(c)
|
AND NOT (a)-[:follows]->(c)
|
||||||
RETURN DISTINCT c.account_id
|
RETURN DISTINCT c.account_id, c.nodeRank
|
||||||
ORDER BY c.nodeRank
|
ORDER BY c.nodeRank
|
||||||
LIMIT {limit}
|
LIMIT {limit}
|
||||||
END
|
END
|
||||||
|
|
Loading…
Reference in New Issue