summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-01-19 19:51:30 +0100
committermarcin mikołajczak <git@mkljczk.pl>2022-01-19 23:52:46 +0100
commit74cf0f0355fbfd21859e0ed374c263762279d89e (patch)
tree96361440ada1fd4182b59a35b526fc059e8b70c0
parentc180f9276fe9c6d6e7c5d25165bf87606cd1c966 (diff)
Update changelog
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
-rw-r--r--CHANGELOG.md3
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex1
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 79b669782..9ddfa36d5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Ability to log slow Ecto queries by configuring `:pleroma, :telemetry, :slow_queries_logging`
- Added Phoenix LiveDashboard at `/phoenix/live_dashboard`
- Added `/manifest.json` for progressive web apps.
+- MastoAPI: Support for `birth_date` and `show_birth_date` field in `/api/v1/accounts/update_credentials`.
+- Configuration: Add `birth_date_required` and `birth_date_min_age` settings to provide a way to require users to enter their birth date.
+- PleromaAPI: Add `GET /api/v1/pleroma/birthday_reminders` API endpoint
### Fixed
- Subscription(Bell) Notifications: Don't create from Pipeline Ingested replies
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex
index 07b3c776f..6c7b4f7c5 100644
--- a/lib/pleroma/web/mastodon_api/views/account_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/account_view.ex
@@ -442,6 +442,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
defp maybe_hide_birth_date(data, %User{hide_birth_date: true}, _) do
data
|> Kernel.pop_in([:pleroma, :birth_date])
+ |> elem(1)
|> Kernel.pop_in([:pleroma, :hide_birth_date])
|> elem(1)
end