Fix broken conversation

This commit is contained in:
Pleroma User 2025-10-07 06:48:17 +00:00 committed by HJ
commit 00ba6b7c5d
8 changed files with 47 additions and 26 deletions

View file

@ -452,7 +452,7 @@ const Status = {
},
scrobblePresent () {
if (this.mergedConfig.hideScrobbles) return false
if (!this.status.user.latestScrobble) return false
if (!this.status.user?.latestScrobble) return false
const value = this.mergedConfig.hideScrobblesAfter.match(/\d+/gs)[0]
const unit = this.mergedConfig.hideScrobblesAfter.match(/\D+/gs)[0]
let multiplier = 60 * 1000 // minutes is smallest unit
@ -474,7 +474,7 @@ const Status = {
return this.status.user.latestScrobble.artist
},
scrobble () {
return this.status.user.latestScrobble
return this.status.user?.latestScrobble
}
},
methods: {