From 91c02046f3da8681094c6bca32f1a2b6d7786682 Mon Sep 17 00:00:00 2001 From: uvok Date: Tue, 21 Jan 2025 20:25:42 +0100 Subject: Skip 0-sized status --- hello-fusepy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hello-fusepy.py b/hello-fusepy.py index dc9117e..fdeec00 100644 --- a/hello-fusepy.py +++ b/hello-fusepy.py @@ -78,6 +78,7 @@ class ActivityPubStatusProvider(StatusProvider): if s.get("type", None) == "Create" and "object" in s and all(key in s["object"] for key in ["id", "content", "published"]) + and len(s["object"]["content"]) ] @@ -124,6 +125,7 @@ class MastodonStatusProvider(StatusProvider): ) for s in statuses if all(key in s for key in ["id", "content", "created_at"]) + and len(s["content"]) ] -- cgit v1.2.3