diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-09-17 22:22:59 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-09-17 22:22:59 +0300 |
commit | a42880040574701000470fc1c2dbd6f7242c1a06 (patch) | |
tree | 666d244b9bf4f38b4421deea8d3b8bbb10ec179e /lib/pleroma/web/metadata | |
parent | d9fb5bc08ad67b55d0cd25c1a0d7d3a740758427 (diff) | |
parent | 7bf269fe836ded974d2187c6b36eba4ab185ff25 (diff) | |
download | pleroma-a42880040574701000470fc1c2dbd6f7242c1a06.tar.gz |
Merge remote-tracking branch 'remotes/origin/develop' into media-preview-proxy-nostream
# Conflicts:
# CHANGELOG.md
Diffstat (limited to 'lib/pleroma/web/metadata')
-rw-r--r-- | lib/pleroma/web/metadata/restrict_indexing.ex | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/pleroma/web/metadata/restrict_indexing.ex b/lib/pleroma/web/metadata/restrict_indexing.ex index f15607896..a1dcb6e15 100644 --- a/lib/pleroma/web/metadata/restrict_indexing.ex +++ b/lib/pleroma/web/metadata/restrict_indexing.ex @@ -10,7 +10,9 @@ defmodule Pleroma.Web.Metadata.Providers.RestrictIndexing do """ @impl true - def build_tags(%{user: %{local: false}}) do + def build_tags(%{user: %{local: true, discoverable: true}}), do: [] + + def build_tags(_) do [ {:meta, [ @@ -19,7 +21,4 @@ defmodule Pleroma.Web.Metadata.Providers.RestrictIndexing do ], []} ] end - - @impl true - def build_tags(%{user: %{local: true}}), do: [] end |