mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
4.22.3
* Fixed: Certain page elements not being affected by FFZ theme settings. * Fixed: Do not display new unlisted add-ons on the home page of the FFZ Control Center unless already enabled by the user. * API Added: `getUserBasic(id, login)` in the Twitch Data module, with support for batching. * API Changed: Allow `createTest` to return a null value for a test to be skipped when compiling a complex filter in `createTester()`.
This commit is contained in:
parent
5f0d4b2bfe
commit
c286e6cf93
9 changed files with 173 additions and 22 deletions
|
@ -267,23 +267,28 @@ export default {
|
|||
if ( addons )
|
||||
for(const [key, addon] of Object.entries(addons)) {
|
||||
const enabled = addon_module.isAddonEnabled(key),
|
||||
copy = {
|
||||
key,
|
||||
enabled,
|
||||
icon: addon.icon,
|
||||
name: addon.name,
|
||||
name_i18n: addon.name_i18n,
|
||||
updated: addon.updated,
|
||||
settings: addon.settings,
|
||||
version: addon.version
|
||||
};
|
||||
is_new = addon.created && addon.created >= week_ago,
|
||||
is_updated = enabled && addon.updated && addon.updated >= week_ago;
|
||||
|
||||
if ( addon.created && addon.created >= week_ago )
|
||||
if ( ! is_updated && ! (is_new && ! enabled && ! addon.unlisted) )
|
||||
continue;
|
||||
|
||||
const copy = {
|
||||
key,
|
||||
enabled,
|
||||
icon: addon.icon,
|
||||
name: addon.name,
|
||||
name_i18n: addon.name_i18n,
|
||||
updated: addon.updated,
|
||||
settings: addon.settings,
|
||||
version: addon.version
|
||||
};
|
||||
|
||||
if ( is_new )
|
||||
new_out.push(copy);
|
||||
|
||||
if ( addon.updated && addon.updated >= week_ago && enabled ) {
|
||||
if ( is_updated )
|
||||
out.push(copy);
|
||||
}
|
||||
}
|
||||
|
||||
out.sort((a,b) => b.updated - a.updated);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue