1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 02:16:54 +00:00

4.0.0-rc13.16.2

* Added: Disclaimer on the Rich Embeds settings warning streamers that thumbnails *could* potentially have NSFW imagery and that they should be aware of the potential if planning on capturing chat.
* Fixed: Exception when calculating the user level for chat messages without badge data.
This commit is contained in:
SirStendec 2018-12-13 16:18:39 -05:00
parent 842ee0d9eb
commit bb51d515dd
2 changed files with 6 additions and 2 deletions

View file

@ -130,6 +130,7 @@ export default class Chat extends Module {
ui: {
path: 'Chat > Appearance >> Rich Content',
title: 'Display rich content embeds for all links.',
description: '*Streamers: Please be aware that this is a potential vector for NSFW imagery via thumbnails, so be mindful when capturing chat with this enabled.*',
component: 'setting-check-box'
}
});
@ -789,9 +790,12 @@ export default class Chat extends Module {
if ( ! msg || ! msg.user )
return 0;
if ( msg.user.login === msg.roomLogin || msg.badges.broadcaster )
if ( msg.user.login === msg.roomLogin || (msg.badges && msg.badges.broadcaster) )
return 4;
if ( ! msg.badges )
return 0;
if ( msg.badges.moderator )
return 3;