From: Roman Chvanikov Date: Tue, 23 Jun 2020 17:56:55 +0000 (+0300) Subject: Merge develop X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1471b70ef1550df91687276968108231f1bab604;p=akkoma Merge develop --- 1471b70ef1550df91687276968108231f1bab604 diff --cc CHANGELOG.md index a83de00f8,7fc2231d1..71963d206 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@@ -6,9 -6,15 +6,16 @@@ The format is based on [Keep a Changelo ## [unreleased] ### Changed + - **Breaking:** Elixir >=1.9 is now required (was >= 1.8) + - In Conversations, return only direct messages as `last_status` + - Using the `only_media` filter on timelines will now exclude reblog media + - MFR policy to set global expiration for all local Create activities + - OGP rich media parser merged with TwitterCard + - Configuration: `:instance, rewrite_policy` moved to `:mrf, policies`, `:instance, :mrf_transparency` moved to `:mrf, :transparency`, `:instance, :mrf_transparency_exclusions` moved to `:mrf, :transparency_exclusions`. Old config namespace is deprecated. +
API Changes + - **Breaking:** Emoji API: changed methods and renamed routes.
diff --cc lib/pleroma/web/admin_api/controllers/admin_api_controller.ex index 335862340,db2413dfe..f9545d895 --- a/lib/pleroma/web/admin_api/controllers/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/controllers/admin_api_controller.ex @@@ -644,13 -640,13 +640,13 @@@ defmodule Pleroma.Web.AdminAPI.AdminAPI action: "resend_confirmation_email" }) - conn |> json("") + json(conn, "") end - def stats(conn, _) do - count = Stats.get_status_visibility_count() + def stats(conn, params) do + counters = Stats.get_status_visibility_count(params["instance"]) - json(conn, %{"status_visibility" => count}) + json(conn, %{"status_visibility" => counters}) end defp page_params(params) do