diff options
| author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-25 09:05:17 +0300 | 
|---|---|---|
| committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-25 09:05:17 +0300 | 
| commit | 012d428e1ffdd83888f339e4dbaec344202eebe1 (patch) | |
| tree | 41483fdfb5c75e6d338ad48b83f7d4e621365694 /config | |
| parent | e743c2232970e321c833604b232520587ad8e402 (diff) | |
| parent | 8eebc75c152ee339bac347350266e3bc6536016b (diff) | |
| download | pleroma-012d428e1ffdd83888f339e4dbaec344202eebe1.tar.gz pleroma-012d428e1ffdd83888f339e4dbaec344202eebe1.zip | |
Merge remote-tracking branch 'remotes/origin/develop' into 1364-notifications-sending-control
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.exs | 5 | ||||
| -rw-r--r-- | config/description.exs | 60 | 
2 files changed, 65 insertions, 0 deletions
| diff --git a/config/config.exs b/config/config.exs index 3357e23e7..2ab939107 100644 --- a/config/config.exs +++ b/config/config.exs @@ -624,6 +624,11 @@ config :pleroma, Pleroma.Repo,    parameters: [gin_fuzzy_search_limit: "500"],    prepare: :unnamed +config :pleroma, :restrict_unauthenticated, +  timelines: %{local: false, federated: false}, +  profiles: %{local: false, remote: false}, +  activities: %{local: false, remote: false} +  # Import environment specific config. This must remain at the bottom  # of this file so it overrides the configuration defined above.  import_config "#{Mix.env()}.exs" diff --git a/config/description.exs b/config/description.exs index 68fa8b03b..9612adba7 100644 --- a/config/description.exs +++ b/config/description.exs @@ -2915,5 +2915,65 @@ config :pleroma, :config_description, [          suggestions: [2]        }      ] +  }, +  %{ +    group: :pleroma, +    key: :restrict_unauthenticated, +    type: :group, +    description: +      "Disallow viewing timelines, user profiles and statuses for unauthenticated users.", +    children: [ +      %{ +        key: :timelines, +        type: :map, +        description: "Settings for public and federated timelines.", +        children: [ +          %{ +            key: :local, +            type: :boolean, +            description: "Disallow view public timeline." +          }, +          %{ +            key: :federated, +            type: :boolean, +            description: "Disallow view federated timeline." +          } +        ] +      }, +      %{ +        key: :profiles, +        type: :map, +        description: "Settings for user profiles.", +        children: [ +          %{ +            key: :local, +            type: :boolean, +            description: "Disallow view local user profiles." +          }, +          %{ +            key: :remote, +            type: :boolean, +            description: "Disallow view remote user profiles." +          } +        ] +      }, +      %{ +        key: :activities, +        type: :map, +        description: "Settings for statuses.", +        children: [ +          %{ +            key: :local, +            type: :boolean, +            description: "Disallow view local statuses." +          }, +          %{ +            key: :remote, +            type: :boolean, +            description: "Disallow view remote statuses." +          } +        ] +      } +    ]    }  ] | 
