Metadata: Move restriction check from Feed provider to activated_providers
This commit is contained in:
parent
2011142ed9
commit
0d2814ec8e
3 changed files with 10 additions and 17 deletions
|
|
@ -24,10 +24,8 @@ defmodule Pleroma.Web.MetadataTest do
|
|||
end
|
||||
|
||||
describe "no metadata for private instances" do
|
||||
setup do: clear_config([:instance, :public])
|
||||
|
||||
test "for local user" do
|
||||
Pleroma.Config.put([:instance, :public], false)
|
||||
clear_config([:instance, :public], false)
|
||||
user = insert(:user, bio: "This is my secret fedi account bio")
|
||||
|
||||
assert "" = Pleroma.Web.Metadata.build_tags(%{user: user})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue