Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Christian Wach

    (@needle)

    When a paragraph changes significantly, the link between the paragraph and its comments is lost. The threshold is about 10% different or so. When that happens, comments from the changed paragraph get assigned to the whole page. You should see them appear there.

    You can re-assign comments to a paragraph by locating the “Move” link above the top-most comment in a thread and dragging and dropping it on the paragraph you want to assign the comment and its replies to.

    I can’t think of a reason this would have a significant impact on the database or performance.

    Cheers, Christian

    Thread Starter kevinweber

    (@kevinweber)

    Hi Christian,

    great thanks for your fast reply!!

    How do you test if the paragraph has changed? Doesn’t this require to store the paragraph’s content somewhere, thus database? Are you using some kind of compression?

    Best regards,
    Kevin

    Plugin Author Christian Wach

    (@needle)

    Hi Kevin,

    Well, technically it’s a Levenshtein distance algorithm that measures similarity. It’s done with the PHP similar_text() function at runtime using the ‘the_content’ filter. No duplicated post data, except for a string per comment that represents the paragraph. Have a look here, if you’re familiar with PHP.

    Cheers, Christian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit post afterwords and still have comments assigned correctly?’ is closed to new replies.