mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(self-hosting): use instance contacts and live product name (#3333)
This commit is contained in:
1 parent
454fefdb92
commit
a5c1362f4a
308 files changed
+16533
-13512
No files matched your search
@@ -167,6 +167,7 @@ pub fn instance_config_page(
|
||||
csrf_token,
|
||||
&instance_config.integrations,
|
||||
instance_config.account_identity.mode,
|
||||
&instance_config.app_public.branding.product_name,
|
||||
))
|
||||
},
|
||||
))
|
||||
@@ -568,6 +569,7 @@ fn integrations_config_section(
|
||||
csrf_token: &str,
|
||||
integrations: &InstanceIntegrationsResponse,
|
||||
account_identity: AccountIdentityMode,
|
||||
product_name: &str,
|
||||
) -> Markup {
|
||||
let smtp_port = integrations
|
||||
.email
|
||||
@@ -629,7 +631,7 @@ fn integrations_config_section(
|
||||
"integration_email_from_name",
|
||||
"From name",
|
||||
integrations.email.from_name.as_deref().unwrap_or(""),
|
||||
"Fluxer",
|
||||
product_name,
|
||||
))
|
||||
(text_input(
|
||||
"integration_smtp_host",
|
||||
@@ -955,9 +957,18 @@ fn app_public_config_section(
|
||||
app_public.legal.privacy_url.as_deref().unwrap_or(""),
|
||||
"https://example.com/privacy",
|
||||
))
|
||||
(text_input(
|
||||
"app_guidelines_url",
|
||||
"Community Guidelines URL",
|
||||
app_public.legal.guidelines_url.as_deref().unwrap_or(""),
|
||||
"https://example.com/guidelines",
|
||||
))
|
||||
}
|
||||
p class="text-xs text-neutral-500" {
|
||||
"Registration asks for agreement only to the documents configured here. Leave both blank to hide legal consent on self-hosted registration."
|
||||
"Registration asks for agreement only to the terms and privacy documents configured here. Leave both blank to hide legal consent on self-hosted registration."
|
||||
}
|
||||
p class="text-xs text-neutral-500" {
|
||||
"The community guidelines URL is linked from the app, the report flow and enforcement emails. Use an absolute http or https URL. Leave it blank to hide those links."
|
||||
}
|
||||
(form_actions(html! {
|
||||
(submit_button("Save Legal Documents"))
|
||||
@@ -1966,6 +1977,7 @@ mod tests {
|
||||
"csrf",
|
||||
&integrations,
|
||||
AccountIdentityMode::Username,
|
||||
"Fluxer",
|
||||
)
|
||||
.into_string();
|
||||
assert!(!username.contains("Email delivery"));
|
||||
@@ -1978,6 +1990,7 @@ mod tests {
|
||||
"csrf",
|
||||
&integrations,
|
||||
AccountIdentityMode::Email,
|
||||
"Fluxer",
|
||||
)
|
||||
.into_string();
|
||||
assert!(email.contains("Email delivery"));
|
||||
|
||||
Reference in new issue
Block a user