mirror of https://gitlab.com/bashrc2/epicyon
Attributed within object
parent
21a9e06c26
commit
7b6c939b92
5
inbox.py
5
inbox.py
|
@ -2535,8 +2535,9 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
# should we notify that a post from this person has arrived?
|
# should we notify that a post from this person has arrived?
|
||||||
# This is for cases where the notify checkbox is enabled
|
# This is for cases where the notify checkbox is enabled
|
||||||
# on the person options screen
|
# on the person options screen
|
||||||
if not postIsDM and postJsonObject.get('attributedTo'):
|
if not postIsDM and hasObjectDict(postJsonObject):
|
||||||
attributedTo = postJsonObject['attributedTo']
|
if postJsonObject['object'].get('attributedTo'):
|
||||||
|
attributedTo = postJsonObject['object']['attributedTo']
|
||||||
if isinstance(attributedTo, str):
|
if isinstance(attributedTo, str):
|
||||||
fromNickname = getNicknameFromActor(attributedTo)
|
fromNickname = getNicknameFromActor(attributedTo)
|
||||||
fromDomain, fromPort = getDomainFromActor(attributedTo)
|
fromDomain, fromPort = getDomainFromActor(attributedTo)
|
||||||
|
|
Loading…
Reference in New Issue