updateMarkersWithAuth(): Require DOMAIN header (#3660)

Otherwise markers are updated for the wrong account.

Fixes https://github.com/tuskyapp/Tusky/issues/3658
This commit is contained in:
Nik Clayton 2023-05-16 18:24:38 +02:00 committed by GitHub
commit 158f9b83fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -156,6 +156,7 @@ interface MastodonApi {
@POST("api/v1/markers")
fun updateMarkersWithAuth(
@Header("Authorization") auth: String,
@Header(DOMAIN_HEADER) domain: String,
@Field("home[last_read_id]") homeLastReadId: String? = null,
@Field("notifications[last_read_id]") notificationsLastReadId: String? = null
): NetworkResult<Unit>