Fix typos
This commit is contained in:
parent
9600973917
commit
f4ccdfd503
@ -121,19 +121,19 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.ArticleNotePageValidatorTest
|
|||||||
insert(:user, ap_id: "https://fedibird.com/users/noellabo")
|
insert(:user, ap_id: "https://fedibird.com/users/noellabo")
|
||||||
|
|
||||||
data = File.read!("test/fixtures/quote_post/fedibird_quote_post.json") |> Jason.decode!()
|
data = File.read!("test/fixtures/quote_post/fedibird_quote_post.json") |> Jason.decode!()
|
||||||
chg = ArticleNotePageValidator.cast_and_validate(data)
|
cng = ArticleNotePageValidator.cast_and_validate(data)
|
||||||
|
|
||||||
assert chg.valid?
|
assert cng.valid?
|
||||||
assert chg.changes.quoteUrl == "https://misskey.io/notes/8vsn2izjwh"
|
assert cng.changes.quoteUrl == "https://misskey.io/notes/8vsn2izjwh"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "Misskey quote post" do
|
test "Misskey quote post" do
|
||||||
insert(:user, ap_id: "https://misskey.io/users/7rkrarq81i")
|
insert(:user, ap_id: "https://misskey.io/users/7rkrarq81i")
|
||||||
|
|
||||||
data = File.read!("test/fixtures/quote_post/misskey_quote_post.json") |> Jason.decode!()
|
data = File.read!("test/fixtures/quote_post/misskey_quote_post.json") |> Jason.decode!()
|
||||||
chg = ArticleNotePageValidator.cast_and_validate(data)
|
cng = ArticleNotePageValidator.cast_and_validate(data)
|
||||||
|
|
||||||
assert chg.valid?
|
assert cng.valid?
|
||||||
assert chg.changes.quoteUrl == "https://misskey.io/notes/8vs6wxufd0"
|
assert cng.changes.quoteUrl == "https://misskey.io/notes/8vs6wxufd0"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -797,7 +797,7 @@ defmodule Pleroma.Web.CommonAPITest do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it allows allows quote posting" do
|
test "it allows quote posting" do
|
||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
|
|
||||||
{:ok, quoted} = CommonAPI.post(user, %{status: "Hello world"})
|
{:ok, quoted} = CommonAPI.post(user, %{status: "Hello world"})
|
||||||
|
Loading…
Reference in New Issue
Block a user