1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-05 10:38:30 +00:00

3.5.340. Fix sub count not showing on the dashboard. Clips dark theme fix.

This commit is contained in:
SirStendec 2016-10-19 13:55:12 -04:00
parent 3a3b30d4fd
commit 81aa67b203
6 changed files with 84 additions and 23 deletions

View file

@ -656,7 +656,8 @@ FFZ.prototype.tokenize_chat_line = function(msgObject, prevent_notification, del
from_me = user && from_user === user.login,
tags = msgObject.tags || {},
emotes = tags.emotes,
tokens = [msg];
tokens = [msg],
mod_or_higher = tags.mod || from_user === room_id || tags['user-type'] === 'staff' || tags['user-type'] === 'admin' || tags['user-type'] === 'global_mod';
// Standard Tokenization
if ( tags.bits && bits_helpers && bits_helpers.tokenizeBits )
@ -667,8 +668,7 @@ FFZ.prototype.tokenize_chat_line = function(msgObject, prevent_notification, del
// tokens = helpers.tokenizeRichContent(tokens, tags.content, delete_links);
if ( helpers && helpers.linkifyMessage && this.settings.parse_links )
tokens = helpers.linkifyMessage(tokens, delete_links && ! tags.mod);
tokens = helpers.linkifyMessage(tokens, delete_links && ! mod_or_higher);
if ( user && user.login && helpers && helpers.mentionizeMessage ) {
tokens = helpers.mentionizeMessage(tokens, user.login, from_me);