Fix reblog taken into account when translating status on home timeline (IOS-271)

This commit is contained in:
Marcus Kida 2024-06-25 11:36:18 +02:00
parent 972426fa50
commit ad8d5e6e69
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ extension DataSourceFacade {
performDeletion(of: status, with: dependency)
}
case .translateStatus:
guard let status = menuContext.statusViewModel?.originalStatus else { return }
guard let status = menuContext.statusViewModel?.originalStatus?.reblog ?? menuContext.statusViewModel?.originalStatus else { return }
do {
let translation = try await DataSourceFacade.translateStatus(provider: dependency,status: status)