Fix activity being passed to objec_to_search_data
This commit is contained in:
parent
07ccab9766
commit
d9ef7e0758
|
@ -112,7 +112,7 @@ def object_to_search_data(object) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_to_index(activity) do
|
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
|
if activity.data["type"] == "Create" and maybe_search_data do
|
||||||
result =
|
result =
|
||||||
|
|
Loading…
Reference in New Issue