Don't download self-boosts

merge-requests/30/head
Bob Mottram 2021-06-03 13:17:24 +01:00
parent 613e6b8945
commit ea6571da4e
1 changed files with 3 additions and 0 deletions

View File

@ -3924,6 +3924,9 @@ def downloadAnnounce(session, baseDir: str, httpPrefix: str,
return None
if not isinstance(postJsonObject['object'], str):
return None
# ignore self-boosts
if postJsonObject['actor'] in postJsonObject['object']:
return None
# get the announced post
announceCacheDir = baseDir + '/cache/announce/' + nickname