Extra check that blog post is public

main
Bob Mottram 2020-10-25 10:42:38 +00:00
parent 91751a1974
commit d571088c2d
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ from socket import error as SocketError
import errno import errno
from datetime import datetime from datetime import datetime
from collections import OrderedDict from collections import OrderedDict
from utils import isPublicPost
from utils import locatePost from utils import locatePost
from utils import loadJson from utils import loadJson
from utils import saveJson from utils import saveJson
@ -390,7 +391,7 @@ def isaBlogPost(postJsonObject: {}) -> bool:
if postJsonObject['object'].get('summary') and \ if postJsonObject['object'].get('summary') and \
postJsonObject['object'].get('url') and \ postJsonObject['object'].get('url') and \
postJsonObject['object'].get('published'): postJsonObject['object'].get('published'):
return True return isPublicPost(postJsonObject)
return False return False