projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fallback to a variant if the language in general is not supported
[akkoma]
/
lib
/
pleroma
/
hashtag.ex
diff --git
a/lib/pleroma/hashtag.ex
b/lib/pleroma/hashtag.ex
index 53e2e9c897d564dd788306a72fa640ff75cbdce8..cdbfeab02b4b2d974248c23c9f5d3da9f2b39429 100644
(file)
--- 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
{:ok, Repo.all(from(ht in Hashtag, where: ht.name in ^names))}
end)
|> Repo.transaction() do
+ Pleroma.Elasticsearch.maybe_bulk_post(hashtags, :hashtags)
{:ok, hashtags}
else
{:error, _name, value, _changes_so_far} -> {:error, value}
{:ok, hashtags}
else
{:error, _name, value, _changes_so_far} -> {:error, value}