mirror of https://gitlab.com/bashrc2/epicyon
prevent an error for posts missing an inReplyTo key.
parent
fc2c6e6aa0
commit
61ff46ad1c
23
inbox.py
23
inbox.py
|
@ -2364,17 +2364,18 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
if nickname != 'inbox':
|
if nickname != 'inbox':
|
||||||
# replies index will be updated
|
# replies index will be updated
|
||||||
updateIndexList.append('tlreplies')
|
updateIndexList.append('tlreplies')
|
||||||
inReplyTo = postJsonObject['object']['inReplyTo']
|
if postJsonObject['object'].get('inReplyTo'):
|
||||||
if inReplyTo:
|
inReplyTo = postJsonObject['object']['inReplyTo']
|
||||||
if isinstance(inReplyTo, str):
|
if inReplyTo:
|
||||||
if not isMuted(baseDir, nickname, domain,
|
if isinstance(inReplyTo, str):
|
||||||
inReplyTo):
|
if not isMuted(baseDir, nickname, domain,
|
||||||
replyNotify(baseDir, handle,
|
inReplyTo):
|
||||||
httpPrefix + '://' + domain +
|
replyNotify(baseDir, handle,
|
||||||
'/users/' + nickname +
|
httpPrefix + '://' + domain +
|
||||||
'/tlreplies')
|
'/users/' + nickname +
|
||||||
else:
|
'/tlreplies')
|
||||||
isReplyToMutedPost = True
|
else:
|
||||||
|
isReplyToMutedPost = True
|
||||||
|
|
||||||
if isImageMedia(session, baseDir, httpPrefix,
|
if isImageMedia(session, baseDir, httpPrefix,
|
||||||
nickname, domain, postJsonObject,
|
nickname, domain, postJsonObject,
|
||||||
|
|
Loading…
Reference in New Issue