Fix add_to_index/1 to adhere to the typespec
This commit is contained in:
parent
1d819195b6
commit
ea78e76837
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ defmodule Pleroma.Search do
|
|||
def add_to_index(%Activity{id: activity_id}) do
|
||||
case Activity.get_by_id_with_object(activity_id) do
|
||||
%Activity{} = preloaded -> add_to_index(preloaded)
|
||||
_ -> :ok
|
||||
_ -> {:ok, :noop}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue