mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-24 19:48:30 +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:
parent
842ee0d9eb
commit
bb51d515dd
2 changed files with 6 additions and 2 deletions
|
@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
|
|||
FrankerFaceZ.Logger = Logger;
|
||||
|
||||
const VER = FrankerFaceZ.version_info = {
|
||||
major: 4, minor: 0, revision: 0, extra: '-rc13.16.1',
|
||||
major: 4, minor: 0, revision: 0, extra: '-rc13.16.2',
|
||||
commit: __git_commit__,
|
||||
build: __webpack_hash__,
|
||||
toString: () =>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue