Fix Dialyzer warnings

This commit is contained in:
Egor Kislitsyn 2020-02-25 18:34:56 +04:00
commit 22018adae6
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
16 changed files with 35 additions and 41 deletions

View file

@ -30,7 +30,7 @@ defmodule Pleroma.Activity.Queries do
)
end
@spec by_author(query, String.t()) :: query
@spec by_author(query, User.t()) :: query
def by_author(query \\ Activity, %User{ap_id: ap_id}) do
from(a in query, where: a.actor == ^ap_id)
end