fix duplicate tags when updating

pull/225/head
Aevann 2024-03-23 22:13:43 +02:00
parent 69edca214e
commit 24c315f4ae
1 changed files with 2 additions and 2 deletions

View File

@ -582,10 +582,10 @@ def update_emoji(v):
updated = True
if tags and existing.tags != tags:
tags = delete_unnecessary_tags(tags, new_name)
existing.tags += f" {tags}"
existing.tags = delete_unnecessary_tags(existing.tags, new_name)
if not tags_regex.fullmatch(tags):
abort(400, "Invalid tags!")
existing.tags += f" {tags}"
updated = True
if nsfw: