Selaa lähdekoodia

changes after rebase

1668/default-disable-prometheus
Alexander Strizhakov 3 vuotta sitten
vanhempi
commit
4c4ea9a348
No known key found for this signature in database GPG Key ID: 22896A53AEF1381
12 muutettua tiedostoa jossa 5 lisäystä ja 12 poistoa
  1. +1
    -7
      docs/configuration/cheatsheet.md
  2. +1
    -1
      lib/pleroma/web/pleroma_api/controllers/emoji_file_controller.ex
  3. +1
    -1
      lib/pleroma/web/pleroma_api/controllers/user_import_controller.ex
  4. +1
    -1
      lib/pleroma/web/streamer.ex
  5. +1
    -1
      test/pleroma/config/deprecation_warnings_test.exs
  6. +0
    -0
      test/pleroma/emoji/pack_test.exs
  7. +0
    -0
      test/pleroma/user/import_test.exs
  8. +0
    -0
      test/pleroma/user/query_test.exs
  9. +0
    -0
      test/pleroma/utils_test.exs
  10. +0
    -0
      test/pleroma/web/pleroma_api/controllers/emoji_file_controller_test.exs
  11. +0
    -0
      test/pleroma/web/pleroma_api/controllers/user_import_controller_test.exs
  12. +0
    -1
      test/pleroma/web/rich_media/helpers_test.exs

+ 1
- 7
docs/configuration/cheatsheet.md Näytä tiedosto

@@ -113,7 +113,7 @@ To add configuration to your config file, you can copy it from the base config.
* `Pleroma.Web.ActivityPub.MRF.MentionPolicy`: Drops posts mentioning configurable users. (See [`:mrf_mention`](#mrf_mention)).
* `Pleroma.Web.ActivityPub.MRF.VocabularyPolicy`: Restricts activities to a configured set of vocabulary. (See [`:mrf_vocabulary`](#mrf_vocabulary)).
* `Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy`: Rejects or delists posts based on their age when received. (See [`:mrf_object_age`](#mrf_object_age)).
* `Pleroma.Web.ActivityPub.MRF.ActivityExpirationPolicy`: Sets a default expiration on all posts made by users of the local instance. Requires `Pleroma.ActivityExpiration` to be enabled for processing the scheduled delections.
* `Pleroma.Web.ActivityPub.MRF.ActivityExpirationPolicy`: Sets a default expiration on all posts made by users of the local instance. Requires `Pleroma.Workers.PurgeExpiredActivity` to be enabled for processing the scheduled delections.
* `Pleroma.Web.ActivityPub.MRF.ForceBotUnlistedPolicy`: Makes all bot posts to disappear from public timelines.
* `transparency`: Make the content of your Message Rewrite Facility settings public (via nodeinfo).
* `transparency_exclusions`: Exclude specific instance names from MRF transparency. The use of the exclusions feature will be disclosed in nodeinfo as a boolean value.
@@ -219,12 +219,6 @@ config :pleroma, :mrf_user_allowlist, %{
* `total_user_limit`: the number of scheduled activities a user is allowed to create in total (Default: `300`)
* `enabled`: whether scheduled activities are sent to the job queue to be executed

## Pleroma.ActivityExpiration

Enables the worker which processes posts scheduled for deletion. Pinned posts are exempt from expiration.

* `enabled`: whether expired activities will be sent to the job queue to be deleted

## FedSockets
FedSockets is an experimental feature allowing for Pleroma backends to federate using a persistant websocket connection as opposed to making each federation a seperate http connection. This feature is currently off by default. It is configurable throught he following options.



+ 1
- 1
lib/pleroma/web/pleroma_api/controllers/emoji_file_controller.ex Näytä tiedosto

@@ -11,7 +11,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiFileController do
plug(Pleroma.Web.ApiSpec.CastAndValidate)

plug(
Pleroma.Plugs.OAuthScopesPlug,
Pleroma.Web.Plugs.OAuthScopesPlug,
%{scopes: ["write"], admin: true}
when action in [
:create,


+ 1
- 1
lib/pleroma/web/pleroma_api/controllers/user_import_controller.ex Näytä tiedosto

@@ -7,9 +7,9 @@ defmodule Pleroma.Web.PleromaAPI.UserImportController do

require Logger

alias Pleroma.Plugs.OAuthScopesPlug
alias Pleroma.User
alias Pleroma.Web.ApiSpec
alias Pleroma.Web.Plugs.OAuthScopesPlug

plug(OAuthScopesPlug, %{scopes: ["follow", "write:follows"]} when action == :follow)
plug(OAuthScopesPlug, %{scopes: ["follow", "write:blocks"]} when action == :blocks)


+ 1
- 1
lib/pleroma/web/streamer.ex Näytä tiedosto

@@ -11,12 +11,12 @@ defmodule Pleroma.Web.Streamer do
alias Pleroma.Conversation.Participation
alias Pleroma.Notification
alias Pleroma.Object
alias Pleroma.Plugs.OAuthScopesPlug
alias Pleroma.User
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.ActivityPub.Visibility
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.OAuth.Token
alias Pleroma.Web.Plugs.OAuthScopesPlug
alias Pleroma.Web.StreamerView

@mix_env Mix.env()


+ 1
- 1
test/pleroma/config/deprecation_warnings_test.exs Näytä tiedosto

@@ -87,7 +87,7 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
end

test "check_activity_expiration_config/0" do
clear_config([Pleroma.ActivityExpiration, :enabled], true)
clear_config(Pleroma.ActivityExpiration, enabled: true)

assert capture_log(fn ->
DeprecationWarnings.check_activity_expiration_config()


test/emoji/pack_test.exs → test/pleroma/emoji/pack_test.exs Näytä tiedosto


test/user/import_test.exs → test/pleroma/user/import_test.exs Näytä tiedosto


test/user/query_test.exs → test/pleroma/user/query_test.exs Näytä tiedosto


test/utils_test.exs → test/pleroma/utils_test.exs Näytä tiedosto


test/web/pleroma_api/controllers/emoji_file_controller_test.exs → test/pleroma/web/pleroma_api/controllers/emoji_file_controller_test.exs Näytä tiedosto


test/web/pleroma_api/controllers/user_import_controller_test.exs → test/pleroma/web/pleroma_api/controllers/user_import_controller_test.exs Näytä tiedosto


+ 0
- 1
test/pleroma/web/rich_media/helpers_test.exs Näytä tiedosto

@@ -6,7 +6,6 @@ defmodule Pleroma.Web.RichMedia.HelpersTest do
use Pleroma.DataCase

alias Pleroma.Config
alias Pleroma.Object
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.RichMedia.Helpers



Loading…
Peruuta
Tallenna