maybe
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 16 Dec 2021 15:20:22 +0000 (15:20 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 16 Dec 2021 15:20:34 +0000 (15:20 +0000)
lib/pleroma/hashtag.ex

index 1eae4d1e71166ee87adddb0d16d3fb3e87ca836a..cdbfeab02b4b2d974248c23c9f5d3da9f2b39429 100644 (file)
@@ -61,7 +61,7 @@ defmodule Pleroma.Hashtag do
                {:ok, Repo.all(from(ht in Hashtag, where: ht.name in ^names))}
              end)
              |> Repo.transaction() do
-        Pleroma.Elasticsearch.bulk_post(hashtags, :hashtags)
+        Pleroma.Elasticsearch.maybe_bulk_post(hashtags, :hashtags)
         {:ok, hashtags}
       else
         {:error, _name, value, _changes_so_far} -> {:error, value}