All checks were successful
Plugins that require configuration (Twitter/Instagram expanders, Domain Blocker) can now have an app-wide default that each channel inherits and overrides only where needed. - model: add GlobalPluginConfig and MergeConfig (blank channel value inherits the global value) - migration: add global_plugin_config table (#5) - db: GetGlobalPluginConfig, GetAllGlobalPluginConfigs, SetGlobalPluginConfig - app: merge global + channel config per message - admin: /admin/plugins/config/<id> global config page, shared buildPluginConfigFromForm helper and _fields.html partial; channel form shows inherited global value as placeholder - docs: document global vs per-channel plugin configuration
13 lines
713 B
HTML
13 lines
713 B
HTML
{{define "plugins/security.domainblock.html"}}
|
|
<div class="mb-3">
|
|
<label class="form-label">Blocked Domains</label>
|
|
<input type="text" class="form-control" name="blocked_domains"
|
|
value="{{with .Config}}{{index . "blocked_domains"}}{{end}}"
|
|
placeholder="{{with .GlobalConfig}}{{with index . "blocked_domains"}}{{.}}{{else}}example.com, evil.org, ads.com{{end}}{{else}}example.com, evil.org, ads.com{{end}}">
|
|
<div class="form-text text-muted">
|
|
Enter comma-separated list of domains to block (e.g., example.com, evil.org).
|
|
Messages containing links to these domains will be blocked.
|
|
Leave blank to inherit the global configuration.
|
|
</div>
|
|
</div>
|
|
{{end}}
|