feat: add configuration options for instagram and twitter plugins

This commit is contained in:
Felipe M 2025-06-15 12:17:54 +02:00
parent 3a4ba376e7
commit fc77c97547
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
5 changed files with 57 additions and 18 deletions

View file

@ -19,6 +19,26 @@
Messages containing links to these domains will be blocked.
</div>
</div>
{{else if eq .ChannelPlugin.PluginID "social.instagram"}}
<div class="mb-3">
<label class="form-label">Replacement Domain</label>
<input type="text" class="form-control" name="domain"
value="{{with .ChannelPlugin.Config}}{{index . "domain"}}{{end}}"
placeholder="ddinstagram.com">
<div class="form-text text-muted">
Enter the domain to replace instagram.com links with. Default is ddinstagram.com if left empty.
</div>
</div>
{{else if eq .ChannelPlugin.PluginID "social.twitter"}}
<div class="mb-3">
<label class="form-label">Replacement Domain</label>
<input type="text" class="form-control" name="domain"
value="{{with .ChannelPlugin.Config}}{{index . "domain"}}{{end}}"
placeholder="fxtwitter.com">
<div class="form-text text-muted">
Enter the domain to replace twitter.com and x.com links with. Default is fxtwitter.com if left empty.
</div>
</div>
{{else}}
<div class="alert alert-warning">
This plugin doesn't have specific configuration fields implemented yet.