X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpleroma%2Fweb%2Fmetadata.ex;h=46ef00c088f9caf076fbffa0d6d50054ccce57ef;hb=39f3683a06aea3d6aed85c611b0db0f6ea21052a;hp=0f0b56321dfbac5c37ef787a2f81c712b0170f34;hpb=ff07014b2657730101e826d7e82716989d43214c;p=akkoma
diff --git a/lib/pleroma/web/metadata.ex b/lib/pleroma/web/metadata.ex
index 0f0b56321..46ef00c08 100644
--- a/lib/pleroma/web/metadata.ex
+++ b/lib/pleroma/web/metadata.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Metadata do
@@ -7,8 +7,8 @@ defmodule Pleroma.Web.Metadata do
def build_tags(params) do
providers = [
- Pleroma.Web.Metadata.Providers.RestrictIndexing,
- Pleroma.Web.Metadata.Providers.RelMe
+ Pleroma.Web.Metadata.Providers.RelMe,
+ Pleroma.Web.Metadata.Providers.RestrictIndexing
| activated_providers()
]
@@ -45,8 +45,8 @@ defmodule Pleroma.Web.Metadata do
end
defp activated_providers do
- if Pleroma.Config.get!([:instance, :public]) do
- Pleroma.Config.get([__MODULE__, :providers], [])
+ unless Pleroma.Config.restrict_unauthenticated_access?(:activities, :local) do
+ [Pleroma.Web.Metadata.Providers.Feed | Pleroma.Config.get([__MODULE__, :providers], [])]
else
[]
end