fix #97 - insular instances on graph
This commit is contained in:
parent
b51ddddbeb
commit
c6b6144d2a
|
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Display plain Pleroma version rather than the Mastodon-compatible string
|
- Display plain Pleroma version rather than the Mastodon-compatible string
|
||||||
|
- Fix some insular instances appearing on the graph
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,8 @@ defmodule Backend.Api do
|
||||||
user_threshold = get_config(:personal_instance_threshold)
|
user_threshold = get_config(:personal_instance_threshold)
|
||||||
|
|
||||||
Instance
|
Instance
|
||||||
|
# filter down to instances that have edges
|
||||||
|
|> join(:inner, [i], e in Edge, on: i.domain == e.source_domain or i.domain == e.target_domain)
|
||||||
|> where(
|
|> where(
|
||||||
[i],
|
[i],
|
||||||
not is_nil(i.x) and not is_nil(i.y) and not is_nil(i.user_count) and
|
not is_nil(i.x) and not is_nil(i.y) and not is_nil(i.user_count) and
|
||||||
|
|
Loading…
Reference in a new issue