Fix OpenStreetMap User-Agent and Story Rewatch Indicator
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user