From: Ekaterina Vaartis Date: Fri, 29 Oct 2021 18:04:59 +0000 (+0300) Subject: Only add local posts to index in activity_pub X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d99a2be3517af8941a3d8a59af9e0b297a587edb;p=akkoma Only add local posts to index in activity_pub Remote ones are already added in another place --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 5f068cef0..e6548a818 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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