Fix activity being passed to objec_to_search_data
authorEkaterina Vaartis <vaartis@kotobank.ch>
Mon, 23 Aug 2021 18:15:15 +0000 (21:15 +0300)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 29 Jun 2022 19:48:29 +0000 (20:48 +0100)
lib/pleroma/search/meilisearch.ex

index 1ad17bf9f70680c98b33b24c3756849d100c3734..212bdd473cbed041fa06cf6278a7a2f16ea7606b 100644 (file)
@@ -112,7 +112,7 @@ defmodule Pleroma.Search.Meilisearch do
   end
 
   def add_to_index(activity) do
-    maybe_search_data = object_to_search_data(activity)
+    maybe_search_data = object_to_search_data(activity.object)
 
     if activity.data["type"] == "Create" and maybe_search_data do
       result =