projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '1865-media-only' into 'develop'
[akkoma]
/
test
/
web
/
activity_pub
/
visibilty_test.exs
diff --git
a/test/web/activity_pub/visibilty_test.exs
b/test/web/activity_pub/visibilty_test.exs
index b62a89e688712028950185ee525fb2a0234049f0..8e9354c659b71091fbe4dad563c79e7d60c63864 100644
(file)
--- a/
test/web/activity_pub/visibilty_test.exs
+++ b/
test/web/activity_pub/visibilty_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.VisibilityTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.VisibilityTest do
@@
-21,21
+21,21
@@
defmodule Pleroma.Web.ActivityPub.VisibilityTest do
Pleroma.List.follow(list, unrelated)
{:ok, public} =
Pleroma.List.follow(list, unrelated)
{:ok, public} =
- CommonAPI.post(user, %{
"status" => "@#{mentioned.nickname}", "visibility" =>
"public"})
+ CommonAPI.post(user, %{
status: "@#{mentioned.nickname}", visibility:
"public"})
{:ok, private} =
{:ok, private} =
- CommonAPI.post(user, %{
"status" => "@#{mentioned.nickname}", "visibility" =>
"private"})
+ CommonAPI.post(user, %{
status: "@#{mentioned.nickname}", visibility:
"private"})
{:ok, direct} =
{:ok, direct} =
- CommonAPI.post(user, %{
"status" => "@#{mentioned.nickname}", "visibility" =>
"direct"})
+ CommonAPI.post(user, %{
status: "@#{mentioned.nickname}", visibility:
"direct"})
{:ok, unlisted} =
{:ok, unlisted} =
- CommonAPI.post(user, %{
"status" => "@#{mentioned.nickname}", "visibility" =>
"unlisted"})
+ CommonAPI.post(user, %{
status: "@#{mentioned.nickname}", visibility:
"unlisted"})
{:ok, list} =
CommonAPI.post(user, %{
{:ok, list} =
CommonAPI.post(user, %{
-
"status" =>
"@#{mentioned.nickname}",
-
"visibility" =>
"list:#{list.id}"
+
status:
"@#{mentioned.nickname}",
+
visibility:
"list:#{list.id}"
})
%{
})
%{
@@
-212,7
+212,8
@@
defmodule Pleroma.Web.ActivityPub.VisibilityTest do
test "returns true if user following to author" do
author = insert(:user)
test "returns true if user following to author" do
author = insert(:user)
- user = insert(:user, following: [author.ap_id])
+ user = insert(:user)
+ Pleroma.User.follow(user, author)
activity =
insert(:note_activity,
activity =
insert(:note_activity,