Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85595933
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
524 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/lib/pleroma/config.ex b/lib/pleroma/config.ex
index 1bc371dec..9c1b66a12 100644
--- a/lib/pleroma/config.ex
+++ b/lib/pleroma/config.ex
@@ -79,7 +79,11 @@ defmodule Pleroma.Config do
|> get()
|> get_and_update_in(keys, fn _ -> :pop end)
- Application.put_env(:pleroma, parent_key, parent)
+ if parent == [] or parent == %{} do
+ Application.delete_env(:pleroma, parent_key)
+ else
+ Application.put_env(:pleroma, parent_key, parent)
+ end
end
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jul 20, 3:31 PM (57 m, 57 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1695547
Default Alt Text
(524 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment