forked from indymedia/epicyon
Check for liking own post
parent
10ae18affc
commit
3607bfd439
7
inbox.py
7
inbox.py
|
@ -1716,11 +1716,8 @@ def likeNotify(baseDir: str, handle: str, actor: str, url: str,
|
||||||
return
|
return
|
||||||
likeFile = accountDir + '/.newLike'
|
likeFile = accountDir + '/.newLike'
|
||||||
|
|
||||||
domain = handle.split('@')[1]
|
# This is not you liking your own post
|
||||||
nickname = handle.split('@')[0]
|
if actor in url:
|
||||||
actor = httpPrefix + '://' + domain + '/users/' + nickname
|
|
||||||
# the liked post is one which you made
|
|
||||||
if actor not in url:
|
|
||||||
return
|
return
|
||||||
likerNickname = getNicknameFromActor(actor)
|
likerNickname = getNicknameFromActor(actor)
|
||||||
likerDomain, likerPort = getDomainFromActor(actor)
|
likerDomain, likerPort = getDomainFromActor(actor)
|
||||||
|
|
Loading…
Reference in New Issue