From 9950f42c86bd3af37b191d8d76124ed1ce127e65 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 30 Jan 2021 12:48:08 +0000 Subject: [PATCH] Tidying --- posts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/posts.py b/posts.py index f80b2a919..5c976a20f 100644 --- a/posts.py +++ b/posts.py @@ -3915,10 +3915,7 @@ def downloadAnnounce(session, baseDir: str, httpPrefix: str, if '/statuses/' not in announcedJson['id']: _rejectAnnounce(announceFilename) return None - if '/users/' not in announcedJson['id'] and \ - '/accounts/' not in announcedJson['id'] and \ - '/channel/' not in announcedJson['id'] and \ - '/profile/' not in announcedJson['id']: + if not hasUsersPath(announcedJson['id']): _rejectAnnounce(announceFilename) return None if not announcedJson.get('type'):