Linting
This commit is contained in:
parent
fb9ed11b5d
commit
950e03fc35
|
@ -12,7 +12,7 @@ defmodule Backend.Crawler.Crawlers.Mastodon do
|
||||||
@impl ApiCrawler
|
@impl ApiCrawler
|
||||||
def is_instance_type?(domain, result) do
|
def is_instance_type?(domain, result) do
|
||||||
# We might already know that this is a Pleroma instance from nodeinfo
|
# 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
|
true
|
||||||
else
|
else
|
||||||
case get_and_decode("https://#{domain}/api/v1/instance") do
|
case get_and_decode("https://#{domain}/api/v1/instance") do
|
||||||
|
|
|
@ -14,7 +14,7 @@ defmodule Backend.Release do
|
||||||
]
|
]
|
||||||
|
|
||||||
# Ecto repos to start, if any
|
# Ecto repos to start, if any
|
||||||
@repos Application.get_env(:backend, :ecto_repos, [])
|
@repos Application.compile_env(:backend, :ecto_repos, [])
|
||||||
# Elasticsearch clusters to start
|
# Elasticsearch clusters to start
|
||||||
@clusters [Backend.Elasticsearch.Cluster]
|
@clusters [Backend.Elasticsearch.Cluster]
|
||||||
# Elasticsearch indexes to build
|
# Elasticsearch indexes to build
|
||||||
|
|
Loading…
Reference in a new issue