From d0705c3f98a9f2546b0057a033b5fd2d5d046d87 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Nov 2019 19:46:46 +0000 Subject: [PATCH] Get nickname earlier --- inbox.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inbox.py b/inbox.py index 326b06043..8f838d5b7 100644 --- a/inbox.py +++ b/inbox.py @@ -1797,12 +1797,12 @@ def inboxAfterCapabilities(recentPostsCache: {},maxRecentPosts: int, \ updateIndexList=['inbox'] populateReplies(baseDir,httpPrefix,domain,postJsonObject,maxReplies,debug) + nickname=handle.split('@')[0] questionUpdateVotes(baseDir,nickname,domain,postJsonObject) if not isGroup: # create a DM notification file if needed if isDM(postJsonObject): - nickname=handle.split('@')[0] if nickname!='inbox': followDMsFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/.followDMs' if os.path.isfile(followDMsFilename): @@ -1832,7 +1832,6 @@ def inboxAfterCapabilities(recentPostsCache: {},maxRecentPosts: int, \ actor=httpPrefix+'://'+domainFull+'/users/'+handle.split('@')[0] # create a reply notification file if needed - nickname=handle.split('@')[0] if isReply(postJsonObject,actor): if nickname!='inbox': # replies index will be updated