aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/NotifParser.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-09-28 23:46:52 -0700
committerGitHub <noreply@github.com>2019-09-28 23:46:52 -0700
commit08a0bbe6e921f411e04a13c4fdc1282cf9fb4221 (patch)
tree58dec3f2e3cd977fe99a18aef93d78d09fc4c892 /app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/NotifParser.kt
parenteb5e83cdadc348eea8d76d6778f18850444783d1 (diff)
parentb82fadbff34ced9193f7b95e0d46dda5c33e9e08 (diff)
downloadfrost-08a0bbe6e921f411e04a13c4fdc1282cf9fb4221.tar.gz
frost-08a0bbe6e921f411e04a13c4fdc1282cf9fb4221.tar.bz2
frost-08a0bbe6e921f411e04a13c4fdc1282cf9fb4221.zip
Merge pull request #1555 from AllanWang/system-flag-color
Update system flag color
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/NotifParser.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/NotifParser.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/NotifParser.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/NotifParser.kt
index f9db0a8f..ab18172f 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/NotifParser.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/NotifParser.kt
@@ -105,13 +105,13 @@ private class NotifParserImpl : FrostParserBase<FrostNotifs>(false) {
val a = element.getElementsByTag("a").first() ?: return null
val abbr = element.getElementsByTag("abbr")
val epoch = FB_EPOCH_MATCHER.find(abbr.attr("data-store"))[1]?.toLongOrNull() ?: -1L
- //fetch id
+ // fetch id
val id = FB_NOTIF_ID_MATCHER.find(element.id())[1]?.toLongOrNull()
?: System.currentTimeMillis() % FALLBACK_TIME_MOD
val img = element.getInnerImgStyle()
val timeString = abbr.text()
val content =
- a.text().replace("\u00a0", " ").removeSuffix(timeString).trim() //remove &nbsp;
+ a.text().replace("\u00a0", " ").removeSuffix(timeString).trim() // remove &nbsp;
val thumbnail = element.selectFirst("img.thumbnail")?.attr("src")
return FrostNotif(
id = id,