Skip to:
Content
Pages
Categories
Search
Top
Bottom

Live Comment Preview plugin causes spurious Akismet API calls

  • Howdy,

    It looks like the Live Comment Preview causes unexpected API calls to Akismet – a separate API call each time the preview updates (i.e. almost every keystroke).

    I assume this happens because the preview plugin calls the pre_post filter, which in turn triggers bb_ksd_check_post().

    I imagine there may be other plugins that cause a similar problem. Would like to help fix it but I have only a superficial understanding of the bbPress code. Suggestions for the Right Way to do it?

Viewing 5 replies - 1 through 5 (of 5 total)

  • Coffee4cr
    Member

    @coffee4cr

    From my understanding, it calls pre_post, so it can display the html part in the preview. At least that’s how I see it.

    Cause with jQuery, you could just make everything you type appear in the preview div, but that wouln’t change <img src=”link”> to an image.


    Alex Shiels
    Member

    @tellyworth

    From my understanding, it calls pre_post, so it can display the html part in the preview. At least that’s how I see it.

    Well, yes, that’s true. But pre_post_filter triggers an API call to Akismet.

    I don’t know which plugin is doing the wrong thing here, but either Akismet or Live Comment Preview needs to use a different filter.

    Any devs care to weigh in? Should akismet use bb_new_post/bb_update_post instead? (It certainly wouldn’t be the only issue with the Akismet plugin).


    kevinjohngallagher
    Member

    @kevinjohngallagher

    The simple solution to this is to use a Live Comment Preview plugin that doesn’t make any callbacks.


    Coffee4cr
    Member

    @coffee4cr

    But if you do, can it show all the parsed html?

    Live Comment Preview, will let me see all the html tags I’ve used.


    kevinjohngallagher
    Member

    @kevinjohngallagher

    Yeah, just find one that parses the HTML.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.