From 5ca22c2459fb7d9c0d734aaa892c8058d6ab56c0 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sat, 11 Mar 2023 17:24:49 +0000 Subject: [PATCH 1/4] ensure we can't have a null in appends --- lib/pleroma/web/mastodon_api/views/status_view.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 79438571c..3868da8d9 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -227,8 +227,10 @@ def render("show.json", %{activity: %{data: %{"object" => _object}} = activity} |> Enum.filter(fn tag -> is_map(tag) and tag["type"] == "Mention" end) |> Enum.map(fn tag -> tag["href"] end) + to_data = if is_nil(object.data["to"]), do: [], else: object.data["to"] + mentions = - (object.data["to"] ++ tag_mentions) + (to_data ++ tag_mentions) |> Enum.uniq() |> Enum.map(fn Pleroma.Constants.as_public() -> nil From 800fe40407fe6408a0c4db3a71d5186a78539bf8 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sat, 11 Mar 2023 17:26:21 +0000 Subject: [PATCH 2/4] Bump version --- CHANGELOG.md | 4 +++- mix.exs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 859a09e7d..d620c4f3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -## Unreleased +## 2023.03 ## Fixed - Allowed contentMap to be updated on edit +- Filter creation now accepts expires\_at ### Changed - Restoring the database from a dump now goes much faster without need for work-arounds +- Misskey reaction matching uses `content` parameter now ### Added - Extend the mix task `prune_objects` with option `--prune-orphaned-activities` to also prune orphaned activities, allowing to reclaim even more database space diff --git a/mix.exs b/mix.exs index 7cc4d1fa6..8d8f4b5b9 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Pleroma.Mixfile do def project do [ app: :pleroma, - version: version("3.6.0"), + version: version("3.7.0"), elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix] ++ Mix.compilers(), From 70803d796601428f52f585d6fdd3b218f5f3912c Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sat, 11 Mar 2023 18:24:44 +0000 Subject: [PATCH 3/4] Remove mix.env reference --- lib/pleroma/web/plugs/http_security_plug.ex | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/pleroma/web/plugs/http_security_plug.ex b/lib/pleroma/web/plugs/http_security_plug.ex index 6841b13aa..b1f1ada94 100644 --- a/lib/pleroma/web/plugs/http_security_plug.ex +++ b/lib/pleroma/web/plugs/http_security_plug.ex @@ -116,8 +116,6 @@ defp csp_string(conn) do script_src = "script-src 'self' '#{nonce_tag}'" - script_src = if Mix.env() == :dev, do: [script_src, " 'unsafe-eval'"], else: script_src - report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"] insecure = if scheme == "https", do: "upgrade-insecure-requests" From 58f75ac062aa54a139125c1742f3fe59563a345b Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sat, 11 Mar 2023 18:24:57 +0000 Subject: [PATCH 4/4] patch version --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 8d8f4b5b9..098ea15b0 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Pleroma.Mixfile do def project do [ app: :pleroma, - version: version("3.7.0"), + version: version("3.7.1"), elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix] ++ Mix.compilers(),