Ignore updates or likes

main
Bob Mottram 2021-03-05 15:39:03 +00:00
parent b18d5b6242
commit 8689b634d6
1 changed files with 3 additions and 0 deletions

View File

@ -3027,6 +3027,9 @@ def _addPostStringToTimeline(postStr: str, boxname: str,
postsInBox: [], boxActor: str) -> bool:
""" is this a valid timeline post?
"""
if '"Update"' in postStr or '"Like"' in postStr:
return False
# must be a recognized ActivityPub type
if ('"Note"' in postStr or
'"EncryptedMessage"' in postStr or