forked from AkkomaGang/akkoma
Merge branch 'develop' into foxing-patch-2
This commit is contained in:
commit
c2ae3273d5
4 changed files with 7 additions and 5 deletions
|
@ -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/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
## Unreleased
|
## 2023.03
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
- Allowed contentMap to be updated on edit
|
- Allowed contentMap to be updated on edit
|
||||||
|
- Filter creation now accepts expires\_at
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Restoring the database from a dump now goes much faster without need for work-arounds
|
- Restoring the database from a dump now goes much faster without need for work-arounds
|
||||||
|
- Misskey reaction matching uses `content` parameter now
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Extend the mix task `prune_objects` with option `--prune-orphaned-activities` to also prune orphaned activities, allowing to reclaim even more database space
|
- Extend the mix task `prune_objects` with option `--prune-orphaned-activities` to also prune orphaned activities, allowing to reclaim even more database space
|
||||||
|
|
|
@ -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.filter(fn tag -> is_map(tag) and tag["type"] == "Mention" end)
|
||||||
|> Enum.map(fn tag -> tag["href"] end)
|
|> Enum.map(fn tag -> tag["href"] end)
|
||||||
|
|
||||||
|
to_data = if is_nil(object.data["to"]), do: [], else: object.data["to"]
|
||||||
|
|
||||||
mentions =
|
mentions =
|
||||||
(object.data["to"] ++ tag_mentions)
|
(to_data ++ tag_mentions)
|
||||||
|> Enum.uniq()
|
|> Enum.uniq()
|
||||||
|> Enum.map(fn
|
|> Enum.map(fn
|
||||||
Pleroma.Constants.as_public() -> nil
|
Pleroma.Constants.as_public() -> nil
|
||||||
|
|
|
@ -116,8 +116,6 @@ defp csp_string(conn) do
|
||||||
|
|
||||||
script_src = "script-src 'self' '#{nonce_tag}'"
|
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"]
|
report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"]
|
||||||
insecure = if scheme == "https", do: "upgrade-insecure-requests"
|
insecure = if scheme == "https", do: "upgrade-insecure-requests"
|
||||||
|
|
||||||
|
|
2
mix.exs
2
mix.exs
|
@ -4,7 +4,7 @@ defmodule Pleroma.Mixfile do
|
||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :pleroma,
|
app: :pleroma,
|
||||||
version: version("3.6.0"),
|
version: version("3.7.1"),
|
||||||
elixir: "~> 1.12",
|
elixir: "~> 1.12",
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
compilers: [:phoenix] ++ Mix.compilers(),
|
compilers: [:phoenix] ++ Mix.compilers(),
|
||||||
|
|
Loading…
Reference in a new issue