feat: add configuration options for instagram and twitter plugins
This commit is contained in:
parent
3a4ba376e7
commit
fc77c97547
5 changed files with 57 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue