allow jannies to add additional tags

pull/124/head
Aevann 2023-02-17 19:06:22 +02:00
parent c3842b8bf8
commit 5da9c26664
2 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ def update_marsey(v):
purge_files_in_cache([f"https://{SITE}/e/{name}.webp", f"https://{SITE}/assets/images/emojis/{name}.webp", f"https://{SITE}/asset_submissions/marseys/original/{name}.{format}"])
if tags and existing.tags != tags and tags != "none":
existing.tags = tags
existing.tags += f" {tags}"
g.db.add(existing)
elif not file:
return error("You need to actually update something!")

View File

@ -28,7 +28,7 @@
{% if type == "Marsey" %}
<label class="mt-3" for="tags">Tags</label>
<input autocomplete="off" type="text" id="name" class="form-control" name="tags" maxlength="200" placeholder="Leave empty to keep current tags" {% if tags %}value="{{tags}}"{% endif %}>
<input autocomplete="off" type="text" id="name" class="form-control" name="tags" maxlength="200" placeholder="Enter additional tags" {% if tags %}value="{{tags}}"{% endif %}>
{% endif %}
<div class="footer mt-4">
<div class="d-flex">