mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix likes
This commit is contained in:
parent
ae24dea4d6
commit
b92d71d79b
@ -19,15 +19,6 @@ extension PlayerModel {
|
|||||||
return
|
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)
|
playerAPI.video(id)
|
||||||
.load()
|
.load()
|
||||||
.onSuccess { [weak self] response in
|
.onSuccess { [weak self] response in
|
||||||
|
@ -126,11 +126,11 @@ struct Video: Identifiable, Equatable, Hashable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var likesCount: String? {
|
var likesCount: String? {
|
||||||
guard (likes ?? 0) > 0 else {
|
guard let likes else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return likes?.formattedAsAbbreviation()
|
return likes.formattedAsAbbreviation()
|
||||||
}
|
}
|
||||||
|
|
||||||
var dislikesCount: String? {
|
var dislikesCount: String? {
|
||||||
|
Loading…
Reference in New Issue
Block a user