diff options
author | lain <lain@soykaf.club> | 2020-08-05 11:12:14 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-05 11:12:14 +0200 |
commit | 19c108170edb2d72d52c56d82475b565e6fd6b36 (patch) | |
tree | b01fd98f491c60132c424b3c00ebb87c1aa31be6 /test/web/common_api/common_api_test.exs | |
parent | 878c7f3f309aa5aaa9eababc2c863248dd4420bb (diff) | |
parent | 474aba984f2184d4f028c56f687d1a12f69d5c47 (diff) | |
download | pleroma-19c108170edb2d72d52c56d82475b565e6fd6b36.tar.gz pleroma-19c108170edb2d72d52c56d82475b565e6fd6b36.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into features/poll-validation
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index 313dda21b..4ba6232dc 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -458,6 +458,11 @@ defmodule Pleroma.Web.CommonAPITest do end describe "posting" do + test "deactivated users can't post" do + user = insert(:user, deactivated: true) + assert {:error, _} = CommonAPI.post(user, %{status: "ye"}) + end + test "it supports explicit addressing" do user = insert(:user) user_two = insert(:user) |