forked from indymedia/epicyon
Tidying
parent
bdb13540d2
commit
a7dc83813c
2
inbox.py
2
inbox.py
|
@ -2594,7 +2594,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
if len(queue) > 0:
|
if len(queue) > 0:
|
||||||
queue.pop(0)
|
queue.pop(0)
|
||||||
print('Queue: Follow activity for ' + keyId +
|
print('Queue: Follow activity for ' + keyId +
|
||||||
' removed from accepted from queue')
|
' removed from queue')
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
if debug:
|
if debug:
|
||||||
|
|
|
@ -169,9 +169,8 @@ def postJsonString(session, postJsonStr: str,
|
||||||
if postResult.status_code >= 400 and \
|
if postResult.status_code >= 400 and \
|
||||||
postResult.status_code <= 405 and \
|
postResult.status_code <= 405 and \
|
||||||
postResult.status_code != 404:
|
postResult.status_code != 404:
|
||||||
print('WARN: >>> Post to ' + inboxUrl +
|
print('WARN: Post to ' + inboxUrl + ' is unauthorized. Code ' +
|
||||||
' is unauthorized. Code ' +
|
str(postResult.status_code))
|
||||||
str(postResult.status_code) + ' <<<')
|
|
||||||
return False, True
|
return False, True
|
||||||
else:
|
else:
|
||||||
print('WARN: Failed to post to ' + inboxUrl +
|
print('WARN: Failed to post to ' + inboxUrl +
|
||||||
|
|
|
@ -6077,7 +6077,8 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
avatarDescription = ''
|
avatarDescription = ''
|
||||||
if profileJson.get('summary'):
|
if profileJson.get('summary'):
|
||||||
if isinstance(profileJson['summary'], str):
|
if isinstance(profileJson['summary'], str):
|
||||||
avatarDescription = profileJson['summary'].replace('<br>', '\n')
|
avatarDescription = \
|
||||||
|
profileJson['summary'].replace('<br>', '\n')
|
||||||
avatarDescription = avatarDescription.replace('<p>', '')
|
avatarDescription = avatarDescription.replace('<p>', '')
|
||||||
avatarDescription = avatarDescription.replace('</p>', '')
|
avatarDescription = avatarDescription.replace('</p>', '')
|
||||||
profileStr = ' <div class="hero-image">'
|
profileStr = ' <div class="hero-image">'
|
||||||
|
|
Loading…
Reference in New Issue