Check if like notification exists

merge-requests/8/head
Bob Mottram 2020-07-08 22:41:48 +01:00
parent 80248889b8
commit 57d64ed033
1 changed files with 2 additions and 0 deletions

View File

@ -1713,6 +1713,8 @@ def likeNotify(baseDir: str, handle: str, actor: str, url: str) -> None:
if not os.path.isdir(accountDir): if not os.path.isdir(accountDir):
return return
likeFile = accountDir + '/.newLike' likeFile = accountDir + '/.newLike'
if os.path.isfile(likeFile):
return
# This is not you liking your own post # This is not you liking your own post
if actor in url: if actor in url: