aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-01-01 17:30:58 -0500
committerAllan Wang <me@allanwang.ca>2019-01-01 17:30:58 -0500
commit3ca39c2ef8dd06729a742de7f441edc069caf249 (patch)
treec324872bc6afc547452ba5aac735991e3fe68327 /app/src/main/kotlin/com/pitchedapps
parent8245f835b6e5711b3363851ef70e156ae001bda3 (diff)
downloadfrost-3ca39c2ef8dd06729a742de7f441edc069caf249.tar.gz
frost-3ca39c2ef8dd06729a742de7f441edc069caf249.tar.bz2
frost-3ca39c2ef8dd06729a742de7f441edc069caf249.zip
Add changelog
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt2
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/Notifications.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt
index a5b90b09..03ae9553 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt
@@ -228,7 +228,7 @@ class ImageActivity : KauBaseActivity() {
}
// Forbid overwrites
- if (file.length() > 0) {
+ if (file.isFile && file.length() > 0) {
L.i { "Forbid image overwrite" }
return@withContext false
}
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/Notifications.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/Notifications.kt
index a098b6c0..bf974034 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/Notifications.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/Notifications.kt
@@ -35,4 +35,4 @@ fun RequestAuth.markNotificationRead(notifId: Long): FrostRequest<Boolean> {
url("${FB_URL_BASE}a/jewel_notifications_log.php")
post(body.toForm())
}
-} \ No newline at end of file
+}