diff options
author | Angelina Filippova <linakirsanova@gmail.com> | 2020-08-07 21:05:44 +0300 |
---|---|---|
committer | Angelina Filippova <linakirsanova@gmail.com> | 2020-08-07 21:05:44 +0300 |
commit | f21b6ebd5d71b77b1f2b7c8918005c3b70752c15 (patch) | |
tree | 7beddc568e0e1430ab6bc8fdbc4c6d9d04744d49 /test/web/common_api/common_api_test.exs | |
parent | 8e1f7a3eff05a43f59f15dc6fa0483713e221fa7 (diff) | |
parent | 8e90cc58e7ec3f19f03d049ff541750f1ab4774e (diff) | |
download | pleroma-f21b6ebd5d71b77b1f2b7c8918005c3b70752c15.tar.gz |
Merge branch 'feature/update-welcome-setting-in-description' of git.pleroma.social:pleroma/pleroma into feature/update-welcome-setting-in-description
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) |