mirror of https://gitlab.com/bashrc2/epicyon
Attributed within object
parent
21a9e06c26
commit
7b6c939b92
21
inbox.py
21
inbox.py
|
@ -2535,16 +2535,17 @@ 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'):
|
||||||
if isinstance(attributedTo, str):
|
attributedTo = postJsonObject['object']['attributedTo']
|
||||||
fromNickname = getNicknameFromActor(attributedTo)
|
if isinstance(attributedTo, str):
|
||||||
fromDomain, fromPort = getDomainFromActor(attributedTo)
|
fromNickname = getNicknameFromActor(attributedTo)
|
||||||
fromDomainFull = getFullDomain(fromDomain, fromPort)
|
fromDomain, fromPort = getDomainFromActor(attributedTo)
|
||||||
if notifyWhenPersonPosts(baseDir, nickname, domain,
|
fromDomainFull = getFullDomain(fromDomain, fromPort)
|
||||||
fromNickname, fromDomainFull):
|
if notifyWhenPersonPosts(baseDir, nickname, domain,
|
||||||
postId = removeIdEnding(postJsonObject['id'])
|
fromNickname, fromDomainFull):
|
||||||
_notifyPostArrival(baseDir, handle, postId)
|
postId = removeIdEnding(postJsonObject['id'])
|
||||||
|
_notifyPostArrival(baseDir, handle, postId)
|
||||||
|
|
||||||
# If this is a reply to a muted post then also mute it.
|
# If this is a reply to a muted post then also mute it.
|
||||||
# This enables you to ignore a threat that's getting boring
|
# This enables you to ignore a threat that's getting boring
|
||||||
|
|
Loading…
Reference in New Issue