fix(federation): ignore mentions from everything that's not a AP Person

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-06-20 15:39:47 +02:00
parent 2729d5ed7a
commit 56f341e960
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -62,8 +62,8 @@ defmodule Mobilizon.Service.Formatter do
{link, %{acc | mentions: MapSet.put(acc.mentions, {"@" <> nickname, actor})}} {link, %{acc | mentions: MapSet.put(acc.mentions, {"@" <> nickname, actor})}}
# Ignore groups mentions for now # Ignore every other actor type mentions for now
{:ok, %Actor{type: :Group}} -> {:ok, %Actor{}} ->
{buffer, acc} {buffer, acc}
{:error, _} -> {:error, _} ->