mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:14:12 +08:00
FIX: allows youtube embeds to respect the t
param (#21295)
This commit is contained in:
@ -8,8 +8,9 @@ export default function getVideoAttributes(cooked) {
|
||||
const thumbnail = img?.getAttribute("src");
|
||||
const dominantColor = img?.dataset?.dominantColor;
|
||||
const title = cooked.dataset.videoTitle;
|
||||
const startTime = cooked.dataset.videoStartTime || 0;
|
||||
const providerName = cooked.dataset.providerName;
|
||||
const id = cooked.dataset.videoId;
|
||||
|
||||
return { url, thumbnail, title, providerName, id, dominantColor };
|
||||
return { url, thumbnail, title, providerName, id, dominantColor, startTime };
|
||||
}
|
||||
|
Reference in New Issue
Block a user