mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Fix likes
This commit is contained in:
parent
ae24dea4d6
commit
b92d71d79b
@ -19,15 +19,6 @@ extension PlayerModel {
|
||||
return
|
||||
}
|
||||
|
||||
if historyItemBeingLoaded == nil {
|
||||
logger.info("loading history details: \(id)")
|
||||
historyItemBeingLoaded = id
|
||||
} else {
|
||||
logger.info("POSTPONING history load: \(id)")
|
||||
historyItemsToLoad.append(id)
|
||||
return
|
||||
}
|
||||
|
||||
playerAPI.video(id)
|
||||
.load()
|
||||
.onSuccess { [weak self] response in
|
||||
|
@ -126,11 +126,11 @@ struct Video: Identifiable, Equatable, Hashable {
|
||||
}
|
||||
|
||||
var likesCount: String? {
|
||||
guard (likes ?? 0) > 0 else {
|
||||
guard let likes else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return likes?.formattedAsAbbreviation()
|
||||
return likes.formattedAsAbbreviation()
|
||||
}
|
||||
|
||||
var dislikesCount: String? {
|
||||
|
Loading…
Reference in New Issue
Block a user