From 56f341e960b7ae0a5fe78d7174f0e05d14add3f2 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 20 Jun 2023 15:39:47 +0200 Subject: [PATCH] fix(federation): ignore mentions from everything that's not a AP Person Signed-off-by: Thomas Citharel --- lib/service/formatter/formatter.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/service/formatter/formatter.ex b/lib/service/formatter/formatter.ex index d5ae67078..6cdda2318 100644 --- a/lib/service/formatter/formatter.ex +++ b/lib/service/formatter/formatter.ex @@ -62,8 +62,8 @@ defmodule Mobilizon.Service.Formatter do {link, %{acc | mentions: MapSet.put(acc.mentions, {"@" <> nickname, actor})}} - # Ignore groups mentions for now - {:ok, %Actor{type: :Group}} -> + # Ignore every other actor type mentions for now + {:ok, %Actor{}} -> {buffer, acc} {:error, _} ->