Kaynağa Gözat

Update documentation

namespace-move-notification
Egor Kislitsyn 4 yıl önce
ebeveyn
işleme
011ede4536
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 1B49CB15B71E7805
4 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. +1
    -1
      CHANGELOG.md
  2. +2
    -2
      config/description.exs
  3. +2
    -2
      docs/configuration/cheatsheet.md
  4. +1
    -1
      lib/pleroma/web/activity_pub/mrf/activity_expiration_policy.ex

+ 1
- 1
CHANGELOG.md Dosyayı Görüntüle

@@ -34,7 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Rate limiter is now disabled for localhost/socket (unless remoteip plug is enabled)
- Logger: default log level changed from `warn` to `info`.
- Config mix task `migrate_to_db` truncates `config` table before migrating the config file.
- MFR policy to set global expiration for every local activity
- MFR policy to set global expiration for all local Create activities

<details>
<summary>API Changes</summary>


+ 2
- 2
config/description.exs Dosyayı Görüntüle

@@ -1351,12 +1351,12 @@ config :pleroma, :config_description, [
key: :mrf_activity_expiration,
label: "MRF Activity Expiration Policy",
type: :group,
description: "Adds expiration to all local activities",
description: "Adds expiration to all local Create activities",
children: [
%{
key: :days,
type: :integer,
description: "Default global expiration time for all local activities (in days)",
description: "Default global expiration time for all local Create activities (in days)",
suggestions: [90, 365]
}
]


+ 2
- 2
docs/configuration/cheatsheet.md Dosyayı Görüntüle

@@ -43,7 +43,7 @@ You shouldn't edit the base config directly to avoid breakages and merge conflic
* `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`: Adds expiration to all local activities (see [`:mrf_activity_expiration`](#mrf_activity_expiration)).
* `Pleroma.Web.ActivityPub.MRF.ActivityExpirationPolicy`: Adds expiration to all local Create activities (see [`:mrf_activity_expiration`](#mrf_activity_expiration)).
* `public`: Makes the client API in authenticated mode-only except for user-profiles. Useful for disabling the Local Timeline and The Whole Known Network.
* `quarantined_instances`: List of ActivityPub instances where private(DMs, followers-only) activities will not be send.
* `managed_config`: Whenether the config for pleroma-fe is configured in [:frontend_configurations](#frontend_configurations) or in ``static/config.json``.
@@ -145,7 +145,7 @@ config :pleroma, :mrf_user_allowlist,

#### :mrf_activity_expiration

* `days`: Default global expiration time for all local activities (in days)
* `days`: Default global expiration time for all local Create activities (in days)

### :activitypub
* ``unfollow_blocked``: Whether blocks result in people getting unfollowed


+ 1
- 1
lib/pleroma/web/activity_pub/mrf/activity_expiration_policy.ex Dosyayı Görüntüle

@@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.ActivityExpirationPolicy do
@moduledoc "Adds expiration to all local activities"
@moduledoc "Adds expiration to all local Create activities"
@behaviour Pleroma.Web.ActivityPub.MRF

@impl true


Yükleniyor…
İptal
Kaydet