fix(PR): multiple fixes by Daplugg23
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", Constants.OSM_USER_AGENT)
|
||||
.build()
|
||||
).await().use { response ->
|
||||
if (!response.isSuccessful) {
|
||||
|
||||
@@ -4,4 +4,5 @@ object Constants {
|
||||
val SNAPCHAT_PACKAGE_NAME get() = "com.snapchat.android"
|
||||
val MODULE_PACKAGE_NAME get() = BuildConfig.APPLICATION_ID
|
||||
const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.3"
|
||||
const val OSM_USER_AGENT = "PurrfectSnap/1.0"
|
||||
}
|
||||
|
||||
@@ -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