1
0
mirror of https://github.com/metabolist/metatext synced 2025-01-01 04:27:34 +01:00

Fix loading contexts of reblogs

This commit is contained in:
Justin Mazzocchi 2020-09-02 19:23:58 -07:00
parent 2ef7b00130
commit 280ec03ee9
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C

View File

@ -74,7 +74,9 @@ public extension StatusListViewModel {
}
func contextViewModel(id: String) -> StatusListViewModel {
StatusListViewModel(statusListService: statusListService.contextService(statusID: id))
let displayStatusID = statuses[id]?.displayStatus.id ?? id
return StatusListViewModel(statusListService: statusListService.contextService(statusID: displayStatusID))
}
}