feat: remove dissolve + add simpler html tag stripper + html entities

This commit is contained in:
VC
2023-11-16 15:42:10 +01:00
parent 1fdea7f69d
commit 6fccbf8d16
4 changed files with 117 additions and 411 deletions

View File

@@ -34,7 +34,6 @@ pub async fn get_mastodon_timeline_since(
.await?
.json()
.iter()
.cloned()
.filter(|t| {
// this excludes the reply to other users
t.in_reply_to_account_id.is_none()
@@ -45,6 +44,7 @@ pub async fn get_mastodon_timeline_since(
.filter(|t| t.visibility == StatusVisibility::Public) // excludes everything that isnt
// public
.filter(|t| t.reblog.is_none()) // excludes reblogs
.cloned()
.collect();
timeline.reverse();