~tardypad/wee-most

c5b585ab15aad34deea46943f531b068135f8462 — Damien Tardy-Panis 3 months ago a94499c
Ignore reactions on old unknown posts
1 files changed, 6 insertions(+), 0 deletions(-)

M wee_most/post.py
M wee_most/post.py => wee_most/post.py +6 -0
@@ 383,6 383,9 @@ def find_buffer_first_post_line_data(buffer, post_id):
        line_data = weechat.hdata_pointer(weechat.hdata_get("line"), line, "data")

def add_reaction_to_post(reaction):
    if reaction.post is None:
        return

    line_data = find_buffer_last_post_line_data(reaction.buffer, reaction.post.id)

    tags = get_line_data_tags(line_data)


@@ 404,6 407,9 @@ def add_reaction_to_post(reaction):
    )

def remove_reaction_from_post(reaction):
    if reaction.post is None:
        return

    line_data = find_buffer_last_post_line_data(reaction.buffer, reaction.post.id)

    tags = get_line_data_tags(line_data)