projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into oembed_provider
[akkoma]
/
lib
/
pleroma
/
user
/
info.ex
diff --git
a/lib/pleroma/user/info.ex
b/lib/pleroma/user/info.ex
index 49b2f0edab1e66cd5e540e5446b6b05e50ca5c71..a3785447c39164876ed9af74ec2551bbc44ed0e4 100644
(file)
--- a/
lib/pleroma/user/info.ex
+++ b/
lib/pleroma/user/info.ex
@@
-24,6
+24,7
@@
defmodule Pleroma.User.Info do
field(:topic, :string, default: nil)
field(:hub, :string, default: nil)
field(:salmon, :string, default: nil)
field(:topic, :string, default: nil)
field(:hub, :string, default: nil)
field(:salmon, :string, default: nil)
+ field(:hide_network, :boolean, default: false)
# Found in the wild
# ap_id -> Where is this used?
# Found in the wild
# ap_id -> Where is this used?
@@
-135,6
+136,7
@@
defmodule Pleroma.User.Info do
:no_rich_text,
:default_scope,
:banner,
:no_rich_text,
:default_scope,
:banner,
+ :hide_network,
:background
])
end
:background
])
end
@@
-147,6
+149,14
@@
defmodule Pleroma.User.Info do
])
end
])
end
+ def mastodon_settings_update(info, settings) do
+ params = %{settings: settings}
+
+ info
+ |> cast(params, [:settings])
+ |> validate_required([:settings])
+ end
+
def set_source_data(info, source_data) do
params = %{source_data: source_data}
def set_source_data(info, source_data) do
params = %{source_data: source_data}