logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 97eabb20473d962065cb32782737ee10c794617b
parent fe2d4778eee5e8b4fe24f8e1d16d1065e9430027
Author: Tusooa Zhu <tusooa@kazv.moe>
Date:   Sat,  4 Jun 2022 13:15:07 -0400

Fix CommonAPITest

Diffstat:

Mtest/pleroma/web/common_api_test.exs4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/pleroma/web/common_api_test.exs b/test/pleroma/web/common_api_test.exs @@ -586,7 +586,7 @@ defmodule Pleroma.Web.CommonAPITest do object = Object.normalize(activity, fetch: false) assert object.data["content"] == "<p><b>2hu</b></p>alert(&#39;xss&#39;)" - assert object.data["source"] == post + assert object.data["source"]["content"] == post end test "it filters out obviously bad tags when accepting a post as Markdown" do @@ -603,7 +603,7 @@ defmodule Pleroma.Web.CommonAPITest do object = Object.normalize(activity, fetch: false) assert object.data["content"] == "<p><b>2hu</b></p>" - assert object.data["source"] == post + assert object.data["source"]["content"] == post end test "it does not allow replies to direct messages that are not direct messages themselves" do