Actor for notifications

main
Bob Mottram 2021-07-06 23:43:39 +01:00
parent a68ea9b2a4
commit 523399881c
1 changed files with 3 additions and 2 deletions

View File

@ -2527,8 +2527,9 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
if saveJson(postJsonObject, destinationFilename): if saveJson(postJsonObject, destinationFilename):
# should we notify that a post from this person has arrived? # should we notify that a post from this person has arrived?
if not postIsDM: if not postIsDM:
fromNickname = getNicknameFromActor(actor) fromNickname = getNicknameFromActor(postJsonObject['actor'])
fromDomain, fromPort = getDomainFromActor(actor) fromDomain, fromPort = \
getDomainFromActor(postJsonObject['actor'])
fromDomainFull = getFullDomain(fromDomain, fromPort) fromDomainFull = getFullDomain(fromDomain, fromPort)
fromHandle = fromNickname + '@' + fromDomainFull fromHandle = fromNickname + '@' + fromDomainFull
if notifyWhenPersonPosts(baseDir, nickname, domain, if notifyWhenPersonPosts(baseDir, nickname, domain,