aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-09-18 10:43:55 -0400
committerGitHub <noreply@github.com>2017-09-18 10:43:55 -0400
commitd75ad7fb42aba81b334f9453c012f04c3d5f3e0a (patch)
tree9dfd08dd48325ae7f813a4cfa43ec5629662db79 /app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
parent5ae7fd03522dd2c2843ff522314ab1d20f85d391 (diff)
downloadfrost-d75ad7fb42aba81b334f9453c012f04c3d5f3e0a.tar.gz
frost-d75ad7fb42aba81b334f9453c012f04c3d5f3e0a.tar.bz2
frost-d75ad7fb42aba81b334f9453c012f04c3d5f3e0a.zip
Fix/notification defaults (#308)
* Update downloader * Disable deaults on creation * Use notifCount rather than index * Remove quiet * Add checks to ensure job service exists * Update changelog
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
index 3d016909..cd7d9002 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt
@@ -30,7 +30,7 @@ class FbUrlFormatter(url: String) {
cleanedUrl = cleanedUrl.substring(0, qm)
}
discardableQueries.forEach { queries.remove(it) }
- if (cleanedUrl.startsWith("#!/")) cleanedUrl = cleanedUrl.substring(2)
+ if (cleanedUrl.startsWith("#!")) cleanedUrl = cleanedUrl.substring(2)
if (cleanedUrl.startsWith("/")) cleanedUrl = FB_URL_BASE + cleanedUrl.substring(1)
cleanedUrl = cleanedUrl.replaceFirst(".facebook.com//", ".facebook.com/") //sometimes we are given a bad url
L.v(null, "Formatted url from $url to $cleanedUrl")