diff options
author | Allan Wang <me@allanwang.ca> | 2017-09-18 10:43:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-18 10:43:55 -0400 |
commit | d75ad7fb42aba81b334f9453c012f04c3d5f3e0a (patch) | |
tree | 9dfd08dd48325ae7f813a4cfa43ec5629662db79 /app/src/main/kotlin/com/pitchedapps/frost/facebook/FbUrlFormatter.kt | |
parent | 5ae7fd03522dd2c2843ff522314ab1d20f85d391 (diff) | |
download | frost-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.kt | 2 |
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") |