diff --git a/backend/lib/backend/crawler/crawlers/mastodon.ex b/backend/lib/backend/crawler/crawlers/mastodon.ex index 85c6f04..a25e71d 100644 --- a/backend/lib/backend/crawler/crawlers/mastodon.ex +++ b/backend/lib/backend/crawler/crawlers/mastodon.ex @@ -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 diff --git a/backend/lib/backend/release.ex b/backend/lib/backend/release.ex index 430ab4a..cb5eaaa 100644 --- a/backend/lib/backend/release.ex +++ b/backend/lib/backend/release.ex @@ -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