From b5f106b0a81fefba3203f8ec5855e834a2078222 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 3 May 2023 12:05:39 +0200 Subject: [PATCH] fix(backend): Ignore group mentions for now Signed-off-by: Thomas Citharel --- lib/service/formatter/formatter.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/service/formatter/formatter.ex b/lib/service/formatter/formatter.ex index ed98283d2..d5ae67078 100644 --- a/lib/service/formatter/formatter.ex +++ b/lib/service/formatter/formatter.ex @@ -62,6 +62,10 @@ defmodule Mobilizon.Service.Formatter do {link, %{acc | mentions: MapSet.put(acc.mentions, {"@" <> nickname, actor})}} + # Ignore groups mentions for now + {:ok, %Actor{type: :Group}} -> + {buffer, acc} + {:error, _} -> {buffer, acc} end