April 2024 only! Join our Discord free of charge.

Lightning-fast WordPress on Nginx

“Last Post” in this forum not working?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #13429

    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?


    yes good catch

    it’s a problem with bbpress not ignoring spam replies

    not sure how to fix this but super annoying


    Hmm, 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.


    Thanks @Alan

    You are very talented. Why waste your life on crimin’ and DOSin’

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Thanks to our generous sponsors for their support!