mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
fix(ui,music): handle deleted message replies and safe null duration during restore
- Fall back to channel send when replyingTo message was deleted (UNKNOWN_MESSAGE 404) - Safely handle null duration in dashboard convertVideo and player embed during session restore - Protect lastfm scrobbler and search mixins from null duration properties
This commit is contained in:
1 parent
7c5fb1e468
commit
a0d6f32ea8
8 files changed
+49
-12
No files matched your search
+1
-1
@@ -372,7 +372,7 @@ export class Utils {
|
||||
if (includeDuration && track.duration) {
|
||||
const duration = typeof track.duration === "number"
|
||||
? this.prettifyMS(track.duration)
|
||||
: track.duration.timestamp || track.duration.seconds
|
||||
: (track.duration?.timestamp || track.duration?.seconds)
|
||||
? this.formatSeconds(track.duration.seconds)
|
||||
: "?:??";
|
||||
return `${title} - ${author} [${duration}]`;
|
||||
|
||||
Reference in new issue
Block a user