mirror of https://gitlab.com/bashrc2/epicyon
Define handle variable earlier
parent
71dff77f20
commit
df50fcc797
7
inbox.py
7
inbox.py
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue