Merge branch 'tusooa/allow-lang' into 'develop'
Allow lang attribute See merge request pleroma/pleroma!3882
This commit is contained in:
commit
143676f58c
3 changed files with 51 additions and 38 deletions
|
|
@ -527,6 +527,17 @@ defmodule Pleroma.Web.CommonAPITest do
|
|||
assert Object.tags(object) == ["ساٴينس"]
|
||||
end
|
||||
|
||||
test "allows lang attribute" do
|
||||
user = insert(:user)
|
||||
text = ~s{<span lang="en">something</span><p lang="diaetuitech_rpyhpgc">random</p>}
|
||||
|
||||
{:ok, activity} = CommonAPI.post(user, %{status: text, content_type: "text/html"})
|
||||
|
||||
object = Object.normalize(activity, fetch: false)
|
||||
|
||||
assert object.data["content"] == text
|
||||
end
|
||||
|
||||
test "double dot in link is allowed" do
|
||||
user = insert(:user)
|
||||
text = "https://example.to/something..mp3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue