We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d1713d + 81e1454 commit b95f730Copy full SHA for b95f730
1 file changed
src/Bot/Friday.hs
@@ -229,9 +229,11 @@ renderQueue queue@(FridayVideo {fridayVideoAuthor = user}:_) =
229
|] :) $
230
map
231
(\video ->
232
- [qms||{fridayVideoDate video}
233
- |{fridayVideoAuthor video}
234
- |{fridayVideoName video}||])
+ let ytId = fromMaybe "dQw4w9WgXcQ" $ ytLinkId $ fridayVideoName video
+ in [qms||{fridayVideoDate video}
+ |{fridayVideoAuthor video}
235
+ |{fridayVideoName video}
236
+ |[[https://img.youtube.com/vi/{ytId}/default.jpg]]||])
237
queue
238
renderQueue [] = ""
239
0 commit comments