follower = insert(:user)
followed =
- insert(:user, notification_settings: %Pleroma.User.NotificationSetting{from_followers: false})
+ insert(:user,
+ notification_settings: %Pleroma.User.NotificationSetting{from_followers: false}
+ )
User.follow(follower, followed)
{:ok, activity} = CommonAPI.post(follower, %{status: "hey @#{followed.nickname}"})
test "it disables notifications from people the user follows" do
follower =
- insert(:user, notification_settings: %Pleroma.User.NotificationSetting{from_following: false})
+ insert(:user,
+ notification_settings: %Pleroma.User.NotificationSetting{from_following: false}
+ )
followed = insert(:user)
User.follow(follower, followed)