diff --git a/server/chat-commands/info.ts b/server/chat-commands/info.ts
index 333d273902a6..aaa89e107ad5 100644
--- a/server/chat-commands/info.ts
+++ b/server/chat-commands/info.ts
@@ -2631,7 +2631,7 @@ export const commands: Chat.ChatCommands = {
buf = Utils.html``;
if (resized) buf += Utils.html`
full-size image`;
} else {
- buf = await YouTube.generateVideoDisplay(request.link, false, true);
+ buf = await YouTube.generateVideoDisplay(request.link, false);
if (!buf) return this.errorReply('Could not get YouTube video');
}
buf += Utils.html`
(Requested by ${request.name})`;
@@ -2706,7 +2706,7 @@ export const commands: Chat.ChatCommands = {
this.runBroadcast();
let buf;
if (YouTube.linkRegex.test(link)) {
- buf = await YouTube.generateVideoDisplay(link, false, this.broadcasting);
+ buf = await YouTube.generateVideoDisplay(link, false);
this.message = this.message.replace(/&ab_channel=(.*)(&|)/ig, '').replace(/https:\/\/www\./ig, '');
} else if (Twitch.linkRegex.test(link)) {
const channelId = Twitch.linkRegex.exec(link)?.[2]?.trim();
diff --git a/server/chat-plugins/youtube.ts b/server/chat-plugins/youtube.ts
index d92c9c17f36d..7f8bb0f020e3 100644
--- a/server/chat-plugins/youtube.ts
+++ b/server/chat-plugins/youtube.ts
@@ -229,7 +229,7 @@ export class YoutubeInterface {
if (id.includes('?')) id = id.split('?')[0];
return id;
}
- async generateVideoDisplay(link: string, fullInfo = false, broadcasting = false) {
+ async generateVideoDisplay(link: string, fullInfo = false) {
if (!Config.youtubeKey) {
throw new Chat.ErrorMessage(`This server does not support YouTube commands. If you're the owner, you can enable them by setting up Config.youtubekey.`);
}
@@ -239,12 +239,7 @@ export class YoutubeInterface {
if (!fullInfo) {
let buf = `
${info.title} `;
buf += `(
${info.channelTitle})
`;
- if (broadcasting) {
- buf += `
`;
- } else {
- buf += `
`;
- }
+ buf += `
`;
return buf;
}
let buf = `