forked from indymedia/epicyon
Check nickname and domain
parent
451714e280
commit
290ea18b0b
8
inbox.py
8
inbox.py
|
@ -1719,9 +1719,15 @@ def likeNotify(baseDir: str, handle: str, actor: str, url: str) -> None:
|
||||||
# the liked post is one which you made
|
# the liked post is one which you made
|
||||||
if actor not in url:
|
if actor not in url:
|
||||||
return
|
return
|
||||||
|
likerNickname = None
|
||||||
|
likerDomain = None
|
||||||
likerNickname = getNicknameFromActor(actor)
|
likerNickname = getNicknameFromActor(actor)
|
||||||
likerDomain, likerPort = getDomainFromActor(actor)
|
likerDomain, likerPort = getDomainFromActor(actor)
|
||||||
likerHandle = likerNickname + '@' + likerDomain
|
if likerNickname and likerDomain:
|
||||||
|
likerHandle = likerNickname + '@' + likerDomain
|
||||||
|
else:
|
||||||
|
print('likeNotify actor: ' + str(actor))
|
||||||
|
likerHandle = actor
|
||||||
if likerHandle != handle:
|
if likerHandle != handle:
|
||||||
with open(likeFile, 'w') as fp:
|
with open(likeFile, 'w') as fp:
|
||||||
fp.write(likerHandle + ' ' + url)
|
fp.write(likerHandle + ' ' + url)
|
||||||
|
|
Loading…
Reference in New Issue