From 05e8428a4a041f96b6e64d941339abe141e0e750 Mon Sep 17 00:00:00 2001 From: SirStendec Date: Sun, 26 Jul 2020 21:26:42 -0400 Subject: [PATCH] 4.20.20 * Changed: Show the verified badge on rich chat embeds for Twitch partner channels. * API Added: More flexible support for tokens when building chat embeds. * API Added: Experiment for using the API to look-up links, rather than the socket cluster. --- package.json | 2 +- src/experiments.json | 14 ++++++-- src/modules/chat/components/chat-rich.vue | 30 +++++++++++++++-- src/modules/chat/index.js | 11 +++++-- src/modules/chat/rich_providers.js | 10 ++++++ .../modules/chat/rich_content.jsx | 32 +++++++++++++++++-- src/utilities/constants.js | 9 ++++++ 7 files changed, 96 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 61b29275..1463ef2d 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.20.19", + "version": "4.20.20", "description": "FrankerFaceZ is a Twitch enhancement suite.", "license": "Apache-2.0", "scripts": { diff --git a/src/experiments.json b/src/experiments.json index f18b7761..c1cb130e 100644 --- a/src/experiments.json +++ b/src/experiments.json @@ -7,12 +7,20 @@ {"value": false, "weight": 100} ] }, - "all_points": { - "name": "Override Channel Points Rendering", - "description": "Override rendering for all channel points messages, even when no message is present.", + "api_links": { + "name": "API-Based Link Lookups", + "description": "Use the new API to look up links instead of the socket cluster.", "groups": [ {"value": true, "weight": 50}, {"value": false, "weight": 50} ] + }, + "all_points": { + "name": "Override Channel Points Rendering", + "description": "Override rendering for all channel points messages, even when no message is present.", + "groups": [ + {"value": true, "weight": 100}, + {"value": false, "weight": 0} + ] } } \ No newline at end of file diff --git a/src/modules/chat/components/chat-rich.vue b/src/modules/chat/components/chat-rich.vue index 22694263..64a5fb48 100644 --- a/src/modules/chat/components/chat-rich.vue +++ b/src/modules/chat/components/chat-rich.vue @@ -1,6 +1,7 @@