diff --git a/README.md b/README.md index b424e49c..80567293 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Join the IRC: [irc.fatpeople.lol](ircs://irc.fatpeople.lol:6697/general) - [x] Multi-select moderation actions - [x] Webring +proxy support (compatible with [lynxchan](https://gitlab.com/alogware/LynxChanAddon-Webring) & [infinity](https://gitlab.com/Tenicu/infinityaddon-webring) versions) - [x] Manage everything from the web panel -- [x] Detailed accounts perimssions system +- [x] Detailed accounts permissions system - [x] Works properly with anonymizer networks ## License diff --git a/gulp/res/js/forms.js b/gulp/res/js/forms.js index df7c0fe2..6820bfaf 100644 --- a/gulp/res/js/forms.js +++ b/gulp/res/js/forms.js @@ -146,7 +146,7 @@ class postFormHandler { } updateFlagField() { - if (this.customFlagInput) { + if (this.customFlagInput && this.customFlagInput.options.selectedIndex !== -1) { this.selectedFlagImage.src = this.customFlagInput.options[this.customFlagInput.options.selectedIndex].dataset.src || ''; } } diff --git a/migrations/0.4.0.js b/migrations/0.4.0.js index d4feea94..648f26b0 100644 --- a/migrations/0.4.0.js +++ b/migrations/0.4.0.js @@ -199,4 +199,6 @@ module.exports = async(db, redis) => { await redis.deletePattern('board:*'); console.log('Deleting all sessions from redis (logs all users out)'); await redis.deletePattern('sess:*'); + console.log('Deleting users cache'); + await redis.deletePattern('users:*'); };