Define handle variable earlier

merge-requests/30/head
Bob Mottram 2021-03-07 17:14:16 +00:00
parent 71dff77f20
commit df50fcc797
1 changed files with 3 additions and 4 deletions

View File

@ -2394,6 +2394,9 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
return False
# Not sending to yourself
if not sendingToSelf:
# get the handle of the DM sender
sendH = \
sendingActorNickname + '@' + sendingActorDomain
# check the follow
if not isFollowingActor(baseDir,
nickname, domain,
@ -2408,10 +2411,6 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
if not obj.get('inReplyTo'):
senderPostId = \
postJsonObject['id']
# get the handle of the DM sender
sendH = \
sendingActorNickname + \
'@' + sendingActorDomain
_bounceDM(senderPostId,
session, httpPrefix,
baseDir,