Browse Source

[#2332] Misc. fixes per code change requests.

contrib/munin-healthcheck
Ivan Tashkinov 4 years ago
parent
commit
9c94b6a327
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lib/pleroma/web/activity_pub/mrf.ex
  2. +1
    -1
      priv/repo/migrations/20200328130139_add_following_relationships_following_id_index.exs

+ 1
- 1
lib/pleroma/web/activity_pub/mrf.ex View File

@@ -33,7 +33,7 @@ defmodule Pleroma.Web.ActivityPub.MRF do

@spec subdomain_match?([Regex.t()], String.t()) :: boolean()
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

@callback describe() :: {:ok | :error, Map.t()}


+ 1
- 1
priv/repo/migrations/20200328130139_add_following_relationships_following_id_index.exs View File

@@ -6,6 +6,6 @@ defmodule Pleroma.Repo.Migrations.AddFollowingRelationshipsFollowingIdIndex do
def change do
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

Loading…
Cancel
Save