“Last Post” in this forum not working?
- This topic is empty.
-
AuthorPosts
-
March 17, 2024 at 7:37 pm #13429JuanGuest
Right now for the “General” forum it says that the “Last Post” was 13 hours ago in the topic “Cannot connect via SSH”, but if you go to the page for the topic itself, the last post was over a month ago.
I’ve seen this happening before sometimes in other topics too.
Any idea what’s going here? Can this be fixed?
March 18, 2024 at 7:45 am #13441GabrielGuestyes good catch
it’s a problem with bbpress not ignoring spam replies
not sure how to fix this but super annoying
March 19, 2024 at 5:37 am #13458AlanGuestHmm, it looks like a bug in bbPress.
Maybe try using this?
add_action( 'bbp_akismet_spam_caught', static function () { $GLOBALS['lovely_spam_wonderful_spam'] = true; }, 10, 0 ); add_action( 'bbp_new_reply_post_extras', static function ( $reply_id ) { if ( isset( $GLOBALS['lovely_spam_wonderful_spam'] ) ) { bbp_update_reply_walker( $reply_id ); } }, 10, 1 ); add_action( 'bbp_new_topic_post_extras', static function ( $topic_id ) { if ( isset( $GLOBALS['lovely_spam_wonderful_spam'] ) ) { bbp_update_topic_walker( $topic_id ); } }, 10, 1 );
That’s not an ideal solution, as it may be kind of slow. It would be better to fix this in the bbPress code itself, but it looks like it would be complicated, requiring multiple changes in different parts of the code. I doubt the bbPress developers are going to fix it any time soon either, as the project seems kind of dead (it hasn’t had a release in years).
Also, note that the above code won’t do anything for existing spam topics/replies – it will only work for new incoming spam topics/replies.
March 29, 2024 at 10:53 am #14382LoriGuestThanks @Alan
You are very talented. Why waste your life on crimin’ and DOSin’
-
AuthorPosts
- You must be logged in to reply to this topic.