From 57d64ed033834d8a76e49aa37aca703d677718aa Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 8 Jul 2020 22:41:48 +0100 Subject: [PATCH] Check if like notification exists --- inbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inbox.py b/inbox.py index 1b1535e3..c0c05f49 100644 --- a/inbox.py +++ b/inbox.py @@ -1713,6 +1713,8 @@ def likeNotify(baseDir: str, handle: str, actor: str, url: str) -> None: if not os.path.isdir(accountDir): return likeFile = accountDir + '/.newLike' + if os.path.isfile(likeFile): + return # This is not you liking your own post if actor in url: