From d571088c2d550784039fa1b7ea16b294e893a0ce Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Oct 2020 10:42:38 +0000 Subject: [PATCH] Extra check that blog post is public --- newswire.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index ab8e4fc1e..a604c6cd2 100644 --- a/newswire.py +++ b/newswire.py @@ -12,6 +12,7 @@ from socket import error as SocketError import errno from datetime import datetime from collections import OrderedDict +from utils import isPublicPost from utils import locatePost from utils import loadJson from utils import saveJson @@ -390,7 +391,7 @@ def isaBlogPost(postJsonObject: {}) -> bool: if postJsonObject['object'].get('summary') and \ postJsonObject['object'].get('url') and \ postJsonObject['object'].get('published'): - return True + return isPublicPost(postJsonObject) return False