Merge branch 'develop' into feature/addressable-lists
authorEgor Kislitsyn <egor@kislitsyn.com>
Thu, 11 Jul 2019 06:26:59 +0000 (13:26 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Thu, 11 Jul 2019 06:26:59 +0000 (13:26 +0700)
1  2 
CHANGELOG.md
docs/api/differences_in_mastoapi_responses.md
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/activity_pub/publisher.ex
lib/pleroma/web/activity_pub/transmogrifier.ex
lib/pleroma/web/common_api/common_api.ex
lib/pleroma/web/common_api/utils.ex
lib/pleroma/web/salmon/salmon.ex
test/web/activity_pub/activity_pub_test.exs
test/web/activity_pub/transmogrifier_test.exs
test/web/common_api/common_api_test.exs

diff --cc CHANGELOG.md
index e569c5ad2077bb4120195356de8c190b42697bad,f27446f36b954a63cbb71d13781edeb4970c5c92..ff0cb8740ead2c989fdaff28f619fa71f9b1c34d
@@@ -51,11 -89,17 +89,18 @@@ Configuration: `federation_incoming_rep
  - MRF: Support for rejecting reports from specific instances (`mrf_simple`)
  - MRF: Support for stripping avatars and banner images from specific instances (`mrf_simple`)
  - MRF: Support for running subchains.
 +- Addressable lists
  - Configuration: `skip_thread_containment` option
+ - Configuration: `rate_limit` option. See `Pleroma.Plugs.RateLimiter` documentation for details.
+ - MRF: Support for filtering out likely spam messages by rejecting posts from new users that contain links.
+ - Configuration: `ignore_hosts` option
+ - Configuration: `ignore_tld` option
+ - Configuration: default syslog tag "Pleroma" is now lowercased to "pleroma"
  
  ### Changed
+ - **Breaking:** bind to 127.0.0.1 instead of 0.0.0.0 by default
  - **Breaking:** Configuration: move from Pleroma.Mailer to Pleroma.Emails.Mailer
+ - Thread containment / test for complete visibility will be skipped by default.
  - Enforcement of OAuth scopes
  - Add multiple use/time expiring invite token
  - Restyled OAuth pages to fit with Pleroma's default theme
index 25b5fedb893b09d9a33559848af497144e0857ff,f1450b1139178d940a78f854232613b67980ca9c..8e3892bdf778d3743c9219d34551b7b817d00f51
@@@ -239,18 -235,28 +241,25 @@@ defmodule Pleroma.Web.CommonAPI d
               "emoji",
               Map.merge(Formatter.get_emoji_map(full_payload), poll_emoji)
             ) do
 -      res =
 -        ActivityPub.create(
 -          %{
 -            to: to,
 -            actor: user,
 -            context: context,
 -            object: object,
 -            additional: %{"cc" => cc, "directMessage" => visibility == "direct"}
 -          },
 -          Pleroma.Web.ControllerHelper.truthy_param?(data["preview"]) || false
 -        )
 -
 -      res
 +      ActivityPub.create(
 +        %{
 +          to: to,
 +          actor: user,
 +          context: context,
 +          object: object,
 +          additional: %{"cc" => cc, "bcc" => bcc, "directMessage" => visibility == "direct"}
 +        },
 +        Pleroma.Web.ControllerHelper.truthy_param?(data["preview"]) || false
 +      )
      else
-       e -> {:error, e}
+       {:private_to_public, true} ->
+         {:error, dgettext("errors", "The message visibility must be direct")}
+       {:error, _} = e ->
+         e
+       e ->
+         {:error, e}
      end
    end
  
Simple merge
Simple merge