mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
60276e70e9
commit
d2a32d0d60
|
@ -71,8 +71,8 @@ def undoBookmarksCollectionEntry(recentPostsCache: {},
|
||||||
return
|
return
|
||||||
if not postJsonObject.get('object'):
|
if not postJsonObject.get('object'):
|
||||||
if debug:
|
if debug:
|
||||||
pprint(postJsonObject)
|
print('DEBUG: bookmarked post has no object ' +
|
||||||
print('DEBUG: post ' + objectUrl + ' has no object')
|
str(postJsonObject))
|
||||||
return
|
return
|
||||||
if not isinstance(postJsonObject['object'], dict):
|
if not isinstance(postJsonObject['object'], dict):
|
||||||
return
|
return
|
||||||
|
@ -158,11 +158,12 @@ def updateBookmarksCollection(recentPostsCache: {},
|
||||||
|
|
||||||
if not postJsonObject.get('object'):
|
if not postJsonObject.get('object'):
|
||||||
if debug:
|
if debug:
|
||||||
pprint(postJsonObject)
|
print('DEBUG: no object in bookmarked post ' +
|
||||||
print('DEBUG: post ' + objectUrl + ' has no object')
|
str(postJsonObject))
|
||||||
return
|
return
|
||||||
if not objectUrl.endswith('/bookmarks'):
|
if not objectUrl.endswith('/bookmarks'):
|
||||||
objectUrl = objectUrl + '/bookmarks'
|
objectUrl = objectUrl + '/bookmarks'
|
||||||
|
# does this post have bookmarks on it from differenent actors?
|
||||||
if not postJsonObject['object'].get('bookmarks'):
|
if not postJsonObject['object'].get('bookmarks'):
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Adding initial bookmarks to ' + objectUrl)
|
print('DEBUG: Adding initial bookmarks to ' + objectUrl)
|
||||||
|
|
Loading…
Reference in New Issue