crawl all gnusocial instances w/o nodeinfo

This commit is contained in:
Tao Bror Bojlén 2019-08-10 14:18:03 +03:00
parent 271c67ea8e
commit e8b951485e
No known key found for this signature in database
GPG key ID: C6EC7AAB905F9E6F

View file

@ -30,7 +30,8 @@ defmodule Backend.Crawler.Crawlers.GnuSocial do
@impl ApiCrawler
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)
else
nodeinfo_result