We no longer expect mentions to link if they are prefixed with too many @'s
authorMark Felder <feld@FreeBSD.org>
Wed, 2 Dec 2020 16:27:55 +0000 (10:27 -0600)
committerMark Felder <feld@FreeBSD.org>
Wed, 2 Dec 2020 16:27:55 +0000 (10:27 -0600)
test/pleroma/formatter_test.exs

index f066bd50aeb598b94ceb368e84eb0f246e0c9bd6..5781a3f01d951b9d42b396d0c43ee71d8876313d 100644 (file)
@@ -241,16 +241,14 @@ defmodule Pleroma.FormatterTest do
         "@@gsimg According to @archaeme, that is @daggsy. Also hello @archaeme@archae.me and @o and @@@jimm"
 
       o = insert(:user, %{nickname: "o"})
-      jimm = insert(:user, %{nickname: "jimm"})
-      gsimg = insert(:user, %{nickname: "gsimg"})
+      _jimm = insert(:user, %{nickname: "jimm"})
+      _gsimg = insert(:user, %{nickname: "gsimg"})
       archaeme = insert(:user, %{nickname: "archaeme"})
       archaeme_remote = insert(:user, %{nickname: "archaeme@archae.me"})
 
       expected_mentions = [
         {"@archaeme", archaeme},
         {"@archaeme@archae.me", archaeme_remote},
-        {"@gsimg", gsimg},
-        {"@jimm", jimm},
         {"@o", o}
       ]