mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Force global guest avatar if avatar string is null
This commit is contained in:
parent
76863cd017
commit
bee067f8ec
@ -833,7 +833,11 @@
|
|||||||
Mustache.parse(template);
|
Mustache.parse(template);
|
||||||
for (var i = messages.length-1; i >= 0; i--) {
|
for (var i = messages.length-1; i >= 0; i--) {
|
||||||
var message = messages[i];
|
var message = messages[i];
|
||||||
var avatar = generate_avatar_url(message.author.id, message.author.avatar, message.content);
|
if (message.author.avatar) {
|
||||||
|
var avatar = generate_avatar_url(message.author.id, message.author.avatar, message.content);
|
||||||
|
} else {
|
||||||
|
var avatar = global_guest_icon;
|
||||||
|
}
|
||||||
message = replace_message_mentions(message);
|
message = replace_message_mentions(message);
|
||||||
message = format_bot_message(message);
|
message = format_bot_message(message);
|
||||||
message = parse_message_time(message);
|
message = parse_message_time(message);
|
||||||
|
Loading…
Reference in New Issue
Block a user