mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-14 19:20:40 +01:00
Update v1 tags field to get rid of console nag
This commit is contained in:
parent
5252d74450
commit
a3de917ca2
@ -300,6 +300,7 @@ function charaFormatData(data) {
|
|||||||
_.set(char, 'chat', data.ch_name + ' - ' + humanizedISO8601DateTime());
|
_.set(char, 'chat', data.ch_name + ' - ' + humanizedISO8601DateTime());
|
||||||
_.set(char, 'talkativeness', data.talkativeness);
|
_.set(char, 'talkativeness', data.talkativeness);
|
||||||
_.set(char, 'fav', data.fav == 'true');
|
_.set(char, 'fav', data.fav == 'true');
|
||||||
|
_.set(char, 'tags', typeof data.tags == 'string' ? (data.tags.split(',').map(x => x.trim()).filter(x => x)) : data.tags || []);
|
||||||
|
|
||||||
// Spec V2 fields
|
// Spec V2 fields
|
||||||
_.set(char, 'spec', 'chara_card_v2');
|
_.set(char, 'spec', 'chara_card_v2');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user