X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fhashtag.ex;h=1eae4d1e71166ee87adddb0d16d3fb3e87ca836a;hb=418212c71c71358557e3d72c64394b790bf60557;hp=53e2e9c897d564dd788306a72fa640ff75cbdce8;hpb=92526e02305ca7a54ff90d1bcebdc5ffe7e0dd06;p=akkoma diff --git a/lib/pleroma/hashtag.ex b/lib/pleroma/hashtag.ex index 53e2e9c89..1eae4d1e7 100644 --- a/lib/pleroma/hashtag.ex +++ b/lib/pleroma/hashtag.ex @@ -61,6 +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) {:ok, hashtags} else {:error, _name, value, _changes_so_far} -> {:error, value}