summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok2025-01-21 20:25:42 +0100
committeruvok2025-01-21 20:27:21 +0100
commit91c02046f3da8681094c6bca32f1a2b6d7786682 (patch)
tree46423da751d4a1f81eda91b45368cd508c90581f
parentc717151c1c88722345af386f28e4ab1c559df424 (diff)
Skip 0-sized status
-rw-r--r--hello-fusepy.py2
1 files changed, 2 insertions, 0 deletions
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"])
]