Revert "Merge branch 'features/hashtag-column' into 'develop'"

This reverts merge request !2824
This commit is contained in:
Haelwenn 2020-12-28 12:02:16 +00:00
commit 3966add048
24 changed files with 70 additions and 163 deletions

View file

@ -48,12 +48,14 @@ defmodule Pleroma.Activity.Ir.Topics do
tags
end
defp hashtags_to_topics(object) do
object
|> Object.hashtags()
defp hashtags_to_topics(%{data: %{"tag" => tags}}) do
tags
|> Enum.filter(&is_bitstring(&1))
|> Enum.map(fn tag -> "hashtag:" <> tag end)
end
defp hashtags_to_topics(_), do: []
defp remote_topics(%{local: true}), do: []
defp remote_topics(%{actor: actor}) when is_binary(actor),