forked from indymedia/epicyon
Extra check that blog post is public
parent
91751a1974
commit
d571088c2d
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue