utility.presence: more image fixes try 2

This commit is contained in:
Cynthia Foxwell 2022-10-10 13:22:19 -06:00
parent 6176ba0b07
commit b5fac022bd

View file

@ -791,7 +791,7 @@ presence.callback = async function (msg, line) {
if (activity.assets.large_image != null) {
let largeUrl;
if (activity.assets.large_image.startsWith("mp:")) {
largeUrl = activity.large_image.replace(
largeUrl = activity.assets.large_image.replace(
"mp:",
"https://media.discordapp.net/"
);
@ -802,7 +802,7 @@ presence.callback = async function (msg, line) {
let smallUrl;
if (activity.assets.small_image != null) {
if (activity.assets.small_image.startsWith("mp:")) {
smallUrl = activity.small_image.replace(
smallUrl = activity.assets.small_image.replace(
"mp:",
"https://media.discordapp.net/"
);
@ -844,7 +844,7 @@ presence.callback = async function (msg, line) {
) {
let smallUrl;
if (activity.assets.small_image.startsWith("mp:")) {
smallUrl = activity.small_image.replace(
smallUrl = activity.assets.small_image.replace(
"mp:",
"https://media.discordapp.net/"
);