From 4cde4c8f67e0b302469659b56c14ddbaed2e5d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Diedrich?= Date: Tue, 20 Aug 2024 14:00:09 +0200 Subject: [PATCH] fix filtering ignored posts --- lib/something_erlang/awful_api/thread.ex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/something_erlang/awful_api/thread.ex b/lib/something_erlang/awful_api/thread.ex index 6f45439..a733682 100644 --- a/lib/something_erlang/awful_api/thread.ex +++ b/lib/something_erlang/awful_api/thread.ex @@ -35,7 +35,11 @@ defmodule SomethingErlang.AwfulApi.Thread do end posts = - for post <- Meeseeks.all(thread, css("table.post:not(.ignored)")) do + for post <- Meeseeks.all(thread, css("table.post")), + post + |> Meeseeks.attr("class") + |> String.contains?("ignored") + |> Kernel.not() do %{ userinfo: userinfo(post), postdate: postdate(post),