This commit is contained in:
Inex Code 2021-07-30 21:50:14 +03:00
parent fb9ed11b5d
commit 950e03fc35
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ defmodule Backend.Crawler.Crawlers.Mastodon do
@impl ApiCrawler
def is_instance_type?(domain, result) do
# We might already know that this is a Pleroma instance from nodeinfo
if result != nil and ( Map.get(result, :instance_type) == :pleroma or Map.get(result, :instance_type) == :smithereen ) do
if result != nil and (Map.get(result, :instance_type) == :pleroma or Map.get(result, :instance_type) == :smithereen) do
true
else
case get_and_decode("https://#{domain}/api/v1/instance") do

View file

@ -14,7 +14,7 @@ defmodule Backend.Release do
]
# Ecto repos to start, if any
@repos Application.get_env(:backend, :ecto_repos, [])
@repos Application.compile_env(:backend, :ecto_repos, [])
# Elasticsearch clusters to start
@clusters [Backend.Elasticsearch.Cluster]
# Elasticsearch indexes to build