Notifications about posts from particular accounts

main
Bob Mottram 2021-07-07 10:06:59 +01:00
parent 523399881c
commit 5bc7f28685
1 changed files with 1 additions and 2 deletions

View File

@ -2531,11 +2531,10 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
fromDomain, fromPort = \
getDomainFromActor(postJsonObject['actor'])
fromDomainFull = getFullDomain(fromDomain, fromPort)
fromHandle = fromNickname + '@' + fromDomainFull
if notifyWhenPersonPosts(baseDir, nickname, domain,
fromNickname, fromDomainFull):
postId = removeIdEnding(postJsonObject['id'])
_notifyPostArrival(baseDir, fromHandle, postId)
_notifyPostArrival(baseDir, handle, postId)
# If this is a reply to a muted post then also mute it.
# This enables you to ignore a threat that's getting boring