forked from AkkomaGang/akkoma
[#2332] Misc. fixes per code change requests.
This commit is contained in:
parent
be9d18461a
commit
9c94b6a327
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ def subdomains_regex(domains) when is_list(domains) do
|
||||||
|
|
||||||
@spec subdomain_match?([Regex.t()], String.t()) :: boolean()
|
@spec subdomain_match?([Regex.t()], String.t()) :: boolean()
|
||||||
def subdomain_match?(domains, host) do
|
def subdomain_match?(domains, host) do
|
||||||
!!Enum.find(domains, fn domain -> Regex.match?(domain, host) end)
|
Enum.any?(domains, fn domain -> Regex.match?(domain, host) end)
|
||||||
end
|
end
|
||||||
|
|
||||||
@callback describe() :: {:ok | :error, Map.t()}
|
@callback describe() :: {:ok | :error, Map.t()}
|
||||||
|
|
|
@ -6,6 +6,6 @@ defmodule Pleroma.Repo.Migrations.AddFollowingRelationshipsFollowingIdIndex do
|
||||||
def change do
|
def change do
|
||||||
drop_if_exists(index(:following_relationships, [:follower_id]))
|
drop_if_exists(index(:following_relationships, [:follower_id]))
|
||||||
|
|
||||||
create_if_not_exists(drop_if_exists(index(:following_relationships, [:following_id])))
|
create_if_not_exists(index(:following_relationships, [:following_id]))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue