mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Anti-troll filter
This commit is contained in:
@ -226,6 +226,10 @@ async function importTags(imported_char) {
|
||||
}
|
||||
selected_tags = existingTags.concat(selected_tags.split(', '));
|
||||
selected_tags = selected_tags.filter(t => t !== "");
|
||||
//Anti-troll measure
|
||||
if (selected_tags.length > 15) {
|
||||
selected_tags = selected_tags.slice(0, 15);
|
||||
}
|
||||
for (let tagName of selected_tags) {
|
||||
let tag = tags.find(t => t.name === tagName);
|
||||
|
||||
|
Reference in New Issue
Block a user