From: Ivan Tashkinov Date: Mon, 7 Dec 2020 18:45:04 +0000 (+0300) Subject: Merge remote-tracking branch 'remotes/origin/develop' into auth-improvements X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=c8e7ace812ef199b6d24013e7d2699daf1b79d55;hp=-c;p=akkoma Merge remote-tracking branch 'remotes/origin/develop' into auth-improvements # Conflicts: # CHANGELOG.md --- c8e7ace812ef199b6d24013e7d2699daf1b79d55 diff --combined CHANGELOG.md index 397488584,72dfbedd0..421649e6f --- a/CHANGELOG.md +++ b/CHANGELOG.md @@@ -24,7 -24,7 +24,8 @@@ The format is based on [Keep a Changelo - Ability to view remote timelines, with ex. `/api/v1/timelines/public?instance=lain.com` and streams `public:remote` and `public:remote:media`. - The site title is now injected as a `title` tag like preloads or metadata. - Password reset tokens now are not accepted after a certain age. + - Mix tasks to help with displaying and removing ConfigDB entries. See `mix pleroma.config` +- OAuth form improvements: users are remembered by their cookie, the CSS is overridable by the admin, and the style has been improved.
API Changes diff --combined test/pleroma/web/admin_api/controllers/config_controller_test.exs index 765a5a4b7,276e827d1..e6b203e74 --- a/test/pleroma/web/admin_api/controllers/config_controller_test.exs +++ b/test/pleroma/web/admin_api/controllers/config_controller_test.exs @@@ -162,7 -162,9 +162,9 @@@ defmodule Pleroma.Web.AdminAPI.ConfigCo end end - test "POST /api/pleroma/admin/config error", %{conn: conn} do + test "POST /api/pleroma/admin/config with configdb disabled", %{conn: conn} do + clear_config(:configurable_from_database, false) + conn = conn |> put_req_header("content-type", "application/json") @@@ -1415,7 -1417,11 +1417,7 @@@ describe "GET /api/pleroma/admin/config/descriptions" do test "structure", %{conn: conn} do - admin = insert(:user, is_admin: true) - - conn = - assign(conn, :user, admin) - |> get("/api/pleroma/admin/config/descriptions") + conn = get(conn, "/api/pleroma/admin/config/descriptions") assert [child | _others] = json_response_and_validate_schema(conn, 200) @@@ -1433,7 -1439,11 +1435,7 @@@ {:esshd} ]) - admin = insert(:user, is_admin: true) - - conn = - assign(conn, :user, admin) - |> get("/api/pleroma/admin/config/descriptions") + conn = get(conn, "/api/pleroma/admin/config/descriptions") children = json_response_and_validate_schema(conn, 200)