diff options
author | uvok | 2025-01-21 20:25:42 +0100 |
---|---|---|
committer | uvok | 2025-01-21 20:27:21 +0100 |
commit | 91c02046f3da8681094c6bca32f1a2b6d7786682 (patch) | |
tree | 46423da751d4a1f81eda91b45368cd508c90581f | |
parent | c717151c1c88722345af386f28e4ab1c559df424 (diff) |
Skip 0-sized status
-rw-r--r-- | hello-fusepy.py | 2 |
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"]) ] |