X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fhashtag.ex;h=cdbfeab02b4b2d974248c23c9f5d3da9f2b39429;hb=1745606ab59863139445c8a5ad157326b7c2eab5;hp=1eae4d1e71166ee87adddb0d16d3fb3e87ca836a;hpb=418212c71c71358557e3d72c64394b790bf60557;p=akkoma diff --git a/lib/pleroma/hashtag.ex b/lib/pleroma/hashtag.ex index 1eae4d1e7..cdbfeab02 100644 --- a/lib/pleroma/hashtag.ex +++ b/lib/pleroma/hashtag.ex @@ -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}