Only add local posts to index in activity_pub

Remote ones are already added in another place
This commit is contained in:
Ekaterina Vaartis 2021-10-29 21:04:59 +03:00 committed by FloatingGhost
parent 51faa28568
commit d99a2be351

View file

@ -141,7 +141,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
end)
# Add local posts to search index
Pleroma.Search.add_to_index(activity)
if local, do: Pleroma.Search.add_to_index(activity)
{:ok, activity}
else