fix(backend): Ignore group mentions for now

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-05-03 12:05:39 +02:00
parent dbe2da79c3
commit b5f106b0a8
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -62,6 +62,10 @@ 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
{:ok, %Actor{type: :Group}} ->
{buffer, acc}
{:error, _} -> {:error, _} ->
{buffer, acc} {buffer, acc}
end end