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):
# should we notify that a post from this person has arrived?
if not postIsDM:
fromNickname = getNicknameFromActor(actor)
fromDomain, fromPort = getDomainFromActor(actor)
fromNickname = getNicknameFromActor(postJsonObject['actor'])
fromDomain, fromPort = \
getDomainFromActor(postJsonObject['actor'])
fromDomainFull = getFullDomain(fromDomain, fromPort)
fromHandle = fromNickname + '@' + fromDomainFull
if notifyWhenPersonPosts(baseDir, nickname, domain,