# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Activity.Ir.Topics do
def get_activity_topics(activity) do
activity
- |> Object.normalize()
+ |> Object.normalize(fetch: false)
|> generate_topics(activity)
|> List.flatten()
end
defp hashtags_to_topics(object) do
object
|> Object.hashtags()
- |> Enum.map(fn tag -> "hashtag:" <> tag end)
+ |> Enum.map(fn hashtag -> "hashtag:" <> hashtag end)
end
defp remote_topics(%{local: true}), do: []