Exclude Announce instead of restricting to Create in visibility_tags

This commit is contained in:
Tusooa Zhu 2022-08-31 22:14:54 -04:00
parent ffd379456b
commit 20a0dd6516
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224

View File

@ -29,7 +29,7 @@ defmodule Pleroma.Activity.Ir.Topics do
["user", "list"] ++ visibility_tags(object, activity)
end
defp visibility_tags(object, %{data: %{"type" => "Create"}} = activity) do
defp visibility_tags(object, %{data: %{"type" => type}} = activity) when type != "Announce" do
case Visibility.get_visibility(activity) do
"public" ->
if activity.local do