projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[#2074] OAuth scope checking in Streaming API.
[akkoma]
/
lib
/
pleroma
/
web
/
metadata
/
restrict_indexing.ex
diff --git
a/lib/pleroma/web/metadata/restrict_indexing.ex
b/lib/pleroma/web/metadata/restrict_indexing.ex
index f1560789657724965acda5f46e9053ed764e2cfa..a1dcb6e15145ea0da013a139a8723a6bb580c51a 100644
(file)
--- 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