mirror of https://gitlab.com/bashrc2/epicyon
Actor for notifications
parent
a68ea9b2a4
commit
523399881c
5
inbox.py
5
inbox.py
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue