mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 22:08:45 +00:00
Added optional filter for emojis on instance
This commit is contained in:
parent
c5d552e7d8
commit
cbbebe6b15
6 changed files with 14 additions and 1 deletions
|
@ -3,8 +3,9 @@
|
|||
<div class="page-title"> Emojis </div>
|
||||
|
||||
<div class="emoji-list-container">
|
||||
{{$emoji_filter := $.Ctx.InstanceEmojiFilter}}
|
||||
{{range .Emojis}}
|
||||
{{if Allowed_emoji_page .ShortCode "blobfox senko shiro cirno pleroma udongein"}}
|
||||
{{if Allowed_emoji_page .ShortCode $emoji_filter}}
|
||||
<div class="emoji-item-container">
|
||||
<div class="emoji-item">
|
||||
<img class="emoji" src="{{.URL}}" alt="{{.ShortCode}}" height="32" loading="lazy" />
|
||||
|
|
|
@ -70,6 +70,12 @@
|
|||
<input id="dark-mode" name="dark_mode" type="checkbox" value="true" {{if .Settings.DarkMode}}checked{{end}}>
|
||||
<label for="dark-mode"> Use dark theme </label>
|
||||
</div>
|
||||
<div class="settings-form-field">
|
||||
<label for=""> Instance emoji filter (example_allowed anotherexample ...): </label>
|
||||
</div>
|
||||
<div>
|
||||
<textarea id="instance-emoji-filter" name="instance-emoji-filter" cols="80" rows="1">{{.Settings.InstanceEmojiFilter}}</textarea>
|
||||
</div>
|
||||
<div class="settings-form-field">
|
||||
<label for=""> Reactions filter (example_allowed anotherexample ...): </label>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue