Fix OpenStreetMap User-Agent and Story Rewatch Indicator

This commit is contained in:
daplugg23
2026-02-04 20:22:58 -06:00
parent 528adc6255
commit 1e6e9ada62
2 changed files with 2 additions and 2 deletions

View File

@@ -688,7 +688,7 @@ class AlertDialogs(
suspend fun search() {
okHttpClient.newCall(Request.Builder()
.url("https://nominatim.openstreetmap.org/search".toUri().buildUpon().appendQueryParameter("q", locationName).appendQueryParameter("format", "jsonv2").build().toString())
.header("User-Agent", Constants.USER_AGENT)
.header("User-Agent", "PurrfectSnap/1.0")
.build()
).await().use { response ->
if (!response.isSuccessful) {

View File

@@ -50,7 +50,7 @@ class MixerStories : Feature("MixerStories") {
ProtoEditor(buffer).apply {
edit {
getOrNull(2)?.removeIf {
it.toReader().getVarInt(7, 4) == 1L
(it.toReader().getVarInt(7, 4) ?: 0L) > 1L
}
}
}.toByteArray()