This commit is contained in:
Mr. Stallion 2023-07-07 16:57:37 -07:00
parent 44891f6575
commit 3eab88ab97
2 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,9 @@
* Profile Helper now only shows up if you have anything to fix; otherwise the profile helper can be found in the Settings menu
* Channel owners can now add `[ads: 30min]` in the channel description to control how often Rising can auto-post ads on the channel
## 1.23.5
* Fixed random freezes caused by profile cache
## 1.23.4
* Hotfix to address slowdown issues
* Fixed Profile Helper failing to detect stock kinks grouped inside custom kinks

View File

@ -77,6 +77,12 @@ export class IndexedStore implements PermanentIndexedStore {
// tslint:disable-next-line: no-unsafe-any
data.profileData = data.profileData as ComplexCharacter;
// fix to clean out extra customs that somehow sometimes appear:
if (_.isArray(data.profileData.character.customs)) {
data.profileData.character.customs = {};
await this.storeProfile(data.profileData.character);
}
// console.log('IDX profile', name, data);
return data as ProfileRecord;
@ -87,6 +93,11 @@ export class IndexedStore implements PermanentIndexedStore {
const existing = await this.getProfile(c.character.name);
const ca = new CharacterAnalysis(c.character);
// fix to clean out extra customs that somehow sometimes appear:
if (_.isArray(c.character.customs) || !_.isPlainObject(c.character.customs)) {
c.character.customs = {};
}
const data: ProfileRecord = {
id: this.toProfileId(c.character.name),
name: c.character.name,