mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
52ea6b3a7e
commit
2d0a53bd29
17
utils.py
17
utils.py
|
@ -3492,14 +3492,15 @@ def undo_reaction_collection_entry(recent_posts_cache: {},
|
||||||
total_items = obj['reactions']['totalItems']
|
total_items = obj['reactions']['totalItems']
|
||||||
item_found = False
|
item_found = False
|
||||||
for like_item in obj['reactions']['items']:
|
for like_item in obj['reactions']['items']:
|
||||||
if like_item.get('actor'):
|
if not like_item.get('actor'):
|
||||||
if like_item['actor'] == actor and \
|
continue
|
||||||
like_item['content'] == emoji_content:
|
if like_item['actor'] == actor and \
|
||||||
if debug:
|
like_item['content'] == emoji_content:
|
||||||
print('DEBUG: emoji reaction was removed for ' + actor)
|
if debug:
|
||||||
obj['reactions']['items'].remove(like_item)
|
print('DEBUG: emoji reaction was removed for ' + actor)
|
||||||
item_found = True
|
obj['reactions']['items'].remove(like_item)
|
||||||
break
|
item_found = True
|
||||||
|
break
|
||||||
if not item_found:
|
if not item_found:
|
||||||
return
|
return
|
||||||
if total_items == 1:
|
if total_items == 1:
|
||||||
|
|
Loading…
Reference in New Issue