mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-06 19:10:54 +01:00
Fixed bug caused by new multi-video code
This commit is contained in:
parent
49b854edda
commit
c5c5b82916
1 changed files with 16 additions and 14 deletions
|
@ -125,6 +125,7 @@ export const handleStatus = async (
|
||||||
sizeMultiplier = 2;
|
sizeMultiplier = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (videos.length > 1) {
|
||||||
const videoCounter = Strings.VIDEO_COUNT.format({
|
const videoCounter = Strings.VIDEO_COUNT.format({
|
||||||
number: String(videos.indexOf(video) + 1),
|
number: String(videos.indexOf(video) + 1),
|
||||||
total: String(videos.length)
|
total: String(videos.length)
|
||||||
|
@ -135,11 +136,12 @@ export const handleStatus = async (
|
||||||
? videoCounter
|
? videoCounter
|
||||||
: `${authorText}${authorText ? ' ― ' : ''}${videoCounter}`;
|
: `${authorText}${authorText ? ' ― ' : ''}${videoCounter}`;
|
||||||
|
|
||||||
let siteName = `${Constants.BRANDING_NAME} - ${videoCounter}`;
|
siteName = `${Constants.BRANDING_NAME} - ${videoCounter}`;
|
||||||
|
|
||||||
if (engagementText) {
|
if (engagementText) {
|
||||||
siteName = `${Constants.BRANDING_NAME} - ${engagementText} - ${videoCounter}`;
|
siteName = `${Constants.BRANDING_NAME} - ${engagementText} - ${videoCounter}`;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
headers.push(`<meta property="og:site_name" content="${siteName}"/>`);
|
headers.push(`<meta property="og:site_name" content="${siteName}"/>`);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue