crawl all gnusocial instances w/o nodeinfo
This commit is contained in:
parent
271c67ea8e
commit
e8b951485e
|
@ -30,7 +30,8 @@ defmodule Backend.Crawler.Crawlers.GnuSocial do
|
||||||
|
|
||||||
@impl ApiCrawler
|
@impl ApiCrawler
|
||||||
def crawl(domain, nodeinfo_result) do
|
def crawl(domain, nodeinfo_result) do
|
||||||
if nodeinfo_result |> Map.get(:user_count) |> is_above_user_threshold?() do
|
if nodeinfo_result == nil or
|
||||||
|
nodeinfo_result |> Map.get(:user_count) |> is_above_user_threshold?() do
|
||||||
crawl_large_instance(domain, nodeinfo_result)
|
crawl_large_instance(domain, nodeinfo_result)
|
||||||
else
|
else
|
||||||
nodeinfo_result
|
nodeinfo_result
|
||||||
|
|
Loading…
Reference in a new issue