Test that zwnj is treated as word char in hashtags
This commit is contained in:
parent
c3a0703564
commit
0e89a9ad15
@ -518,6 +518,15 @@ defmodule Pleroma.Web.CommonAPITest do
|
|||||||
assert Object.tags(object) == ["2hu"]
|
assert Object.tags(object) == ["2hu"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "zwnj is treated as word character" do
|
||||||
|
user = insert(:user)
|
||||||
|
{:ok, activity} = CommonAPI.post(user, %{status: "#ساٴينس"})
|
||||||
|
|
||||||
|
object = Object.normalize(activity, fetch: false)
|
||||||
|
|
||||||
|
assert Object.tags(object) == ["ساٴينس"]
|
||||||
|
end
|
||||||
|
|
||||||
test "it adds emoji in the object" do
|
test "it adds emoji in the object" do
|
||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
{:ok, activity} = CommonAPI.post(user, %{status: ":firefox:"})
|
{:ok, activity} = CommonAPI.post(user, %{status: ":firefox:"})
|
||||||
|
Loading…
Reference in New Issue
Block a user