fix filtering ignored posts

This commit is contained in:
2024-08-20 14:00:09 +02:00
parent d497eaa522
commit 4cde4c8f67

View File

@ -35,7 +35,11 @@ defmodule SomethingErlang.AwfulApi.Thread do
end end
posts = 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), userinfo: userinfo(post),
postdate: postdate(post), postdate: postdate(post),