Less indentation

merge-requests/30/head
Bob Mottram 2022-08-19 17:22:53 +01:00
parent ced75a7b3d
commit f2917482db
1 changed files with 48 additions and 46 deletions

View File

@ -3082,7 +3082,8 @@ def _like_notify(base_dir: str, domain: str,
print('_like_notify liker_handle: ' +
str(liker_nickname) + '@' + str(liker_domain))
liker_handle = actor
if liker_handle != handle:
if liker_handle == handle:
return
like_str = liker_handle + ' ' + url + '?likedBy=' + actor
prev_like_file = account_dir + '/.prevLike'
# was there a previous like notification?
@ -3144,7 +3145,8 @@ def _reaction_notify(base_dir: str, domain: str, onion_domain: str,
print('_reaction_notify reaction_handle: ' +
str(reaction_nickname) + '@' + str(reaction_domain))
reaction_handle = actor
if reaction_handle != handle:
if reaction_handle == handle:
return
reaction_str = \
reaction_handle + ' ' + url + '?reactBy=' + actor + \
';emoj=' + emoji_content