Merge branch 'develop' into foxing-patch-2
authorfoxing <foxing@noreply.akkoma>
Sun, 12 Mar 2023 19:23:22 +0000 (19:23 +0000)
committerfoxing <foxing@noreply.akkoma>
Sun, 12 Mar 2023 19:23:22 +0000 (19:23 +0000)
CHANGELOG.md
lib/pleroma/web/mastodon_api/views/status_view.ex
lib/pleroma/web/plugs/http_security_plug.ex
mix.exs

index 859a09e7db2cb3e68c9a4565b9eb8c4c6c938434..d620c4f3ba3b5db8c09a95e5e3e7378fd2c631ee 100644 (file)
@@ -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
index 79438571cd26a5dbcebd58f0182456040e117e9c..3868da8d9310c96ec33fcf65230e5eea2552e423 100644 (file)
@@ -227,8 +227,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
         |> 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
index 6841b13aa35caeee7bbff998bd27832ba1836a20..b1f1ada94c98553a49393bd69e790638d5372c48 100644 (file)
@@ -116,8 +116,6 @@ defmodule Pleroma.Web.Plugs.HTTPSecurityPlug 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"
 
diff --git a/mix.exs b/mix.exs
index 7cc4d1fa6dd8ff2e4aa5d46672b0a3164798a3a3..098ea15b036150740780a1526661e424daf93a8d 100644 (file)
--- 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.1"),
       elixir: "~> 1.12",
       elixirc_paths: elixirc_paths(Mix.env()),
       compilers: [:phoenix] ++ Mix.compilers(),