mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
We no longer expect mentions to link if they are prefixed with too many @'s
This commit is contained in:
parent
45949b5cd3
commit
126d236455
1 changed files with 2 additions and 4 deletions
|
@ -241,16 +241,14 @@ defmodule Pleroma.FormatterTest do
|
||||||
"@@gsimg According to @archaeme, that is @daggsy. Also hello @archaeme@archae.me and @o and @@@jimm"
|
"@@gsimg According to @archaeme, that is @daggsy. Also hello @archaeme@archae.me and @o and @@@jimm"
|
||||||
|
|
||||||
o = insert(:user, %{nickname: "o"})
|
o = insert(:user, %{nickname: "o"})
|
||||||
jimm = insert(:user, %{nickname: "jimm"})
|
_jimm = insert(:user, %{nickname: "jimm"})
|
||||||
gsimg = insert(:user, %{nickname: "gsimg"})
|
_gsimg = insert(:user, %{nickname: "gsimg"})
|
||||||
archaeme = insert(:user, %{nickname: "archaeme"})
|
archaeme = insert(:user, %{nickname: "archaeme"})
|
||||||
archaeme_remote = insert(:user, %{nickname: "archaeme@archae.me"})
|
archaeme_remote = insert(:user, %{nickname: "archaeme@archae.me"})
|
||||||
|
|
||||||
expected_mentions = [
|
expected_mentions = [
|
||||||
{"@archaeme", archaeme},
|
{"@archaeme", archaeme},
|
||||||
{"@archaeme@archae.me", archaeme_remote},
|
{"@archaeme@archae.me", archaeme_remote},
|
||||||
{"@gsimg", gsimg},
|
|
||||||
{"@jimm", jimm},
|
|
||||||
{"@o", o}
|
{"@o", o}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue