mirror of https://gitlab.com/bashrc2/epicyon
Less verbose
parent
1a17acd43e
commit
b207d2d674
5
inbox.py
5
inbox.py
|
@ -814,7 +814,7 @@ def _personReceiveUpdate(baseDir: str,
|
|||
# save to cache in memory
|
||||
storePersonInCache(baseDir, personJson['id'], personJson,
|
||||
personCache, True)
|
||||
# save to cache on file
|
||||
# save to cache on file
|
||||
if saveJson(personJson, actorFilename):
|
||||
if debug:
|
||||
print('actor updated for ' + personJson['id'])
|
||||
|
@ -3048,7 +3048,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
|||
federationList,
|
||||
queueJson['postNickname'],
|
||||
debug):
|
||||
print('Queue: Update accepted from ' + keyId)
|
||||
if debug:
|
||||
print('Queue: Update accepted from ' + keyId)
|
||||
if os.path.isfile(queueFilename):
|
||||
os.remove(queueFilename)
|
||||
if len(queue) > 0:
|
||||
|
|
4
posts.py
4
posts.py
|
@ -3908,7 +3908,9 @@ def downloadAnnounce(session, baseDir: str, httpPrefix: str,
|
|||
print('Announce download blocked object: ' +
|
||||
str(postJsonObject['object']))
|
||||
return None
|
||||
print('Downloading Announce content for ' + postJsonObject['object'])
|
||||
if debug:
|
||||
print('Downloading Announce content for ' +
|
||||
postJsonObject['object'])
|
||||
announcedJson = \
|
||||
getJson(session, postJsonObject['object'], asHeader,
|
||||
None, projectVersion, httpPrefix, domain)
|
||||
|
|
Loading…
Reference in New Issue