Update changelog

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-01-19 19:51:30 +01:00
parent c180f9276f
commit 74cf0f0355
2 changed files with 4 additions and 0 deletions

View file

@ -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` - Ability to log slow Ecto queries by configuring `:pleroma, :telemetry, :slow_queries_logging`
- Added Phoenix LiveDashboard at `/phoenix/live_dashboard` - Added Phoenix LiveDashboard at `/phoenix/live_dashboard`
- Added `/manifest.json` for progressive web apps. - 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 ### Fixed
- Subscription(Bell) Notifications: Don't create from Pipeline Ingested replies - Subscription(Bell) Notifications: Don't create from Pipeline Ingested replies

View file

@ -442,6 +442,7 @@ defp maybe_hide_birth_date(data, %User{id: user_id}, %User{id: user_id}) do
defp maybe_hide_birth_date(data, %User{hide_birth_date: true}, _) do defp maybe_hide_birth_date(data, %User{hide_birth_date: true}, _) do
data data
|> Kernel.pop_in([:pleroma, :birth_date]) |> Kernel.pop_in([:pleroma, :birth_date])
|> elem(1)
|> Kernel.pop_in([:pleroma, :hide_birth_date]) |> Kernel.pop_in([:pleroma, :hide_birth_date])
|> elem(1) |> elem(1)
end end