Check-in [91a3a600e6]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Link to the next edit rather than the final edit
Timelines: family | ancestors | descendants | both | andygoth-forum-refactor
Files: files | file ages | folders
SHA3-256: 91a3a600e689794fd27bf2b500a94b8d9102d49091f0c713d15f792fa2fb3bd2
User & Date: andygoth 2020-08-22 02:53:56.899
Context
2020-08-22
03:06
Guard against an infinite loop in certain pathological edit patterns Closed-Leaf check-in: 71fe590e99 user: andygoth tags: andygoth-forum-refactor
02:53
Link to the next edit rather than the final edit check-in: 91a3a600e6 user: andygoth tags: andygoth-forum-refactor
02:50
When showing the source of an edited post, show that exact version rather than the newest version check-in: df916a9d01 user: andygoth tags: andygoth-forum-refactor
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/forum.c.
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
      @ %d(p->pIrt->sid)\
      if( p->pIrt->nEdit ){
        @ .%.*d(fossil_num_digits(p->pIrt->nEdit))(p->pIrt->rev)\
      }
      @ </a>
    }

    /* If this post was later edited, refer forward to the new version. */
    if( p->pEditTail ){
      @ updated by %z(href("%R/forumpost/%S?%s",p->pEditTail->zUuid,zQuery))\
      @ %d(p->pEditTail->sid)\
      @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditTail->rev)</a>
    }

    /* Provide a link to select the individual post. */
    if( !bSelect ){
      @ %z(href("%R/forumpost/%S?%s",p->zUuid,zQuery))[link]</a>
    }








|
|
|
|
|







465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
      @ %d(p->pIrt->sid)\
      if( p->pIrt->nEdit ){
        @ .%.*d(fossil_num_digits(p->pIrt->nEdit))(p->pIrt->rev)\
      }
      @ </a>
    }

    /* If this post was later edited, refer forward to the next edit. */
    if( p->pEditNext ){
      @ updated by %z(href("%R/forumpost/%S?%s",p->pEditNext->zUuid,zQuery))\
      @ %d(p->pEditNext->sid)\
      @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditNext->rev)</a>
    }

    /* Provide a link to select the individual post. */
    if( !bSelect ){
      @ %z(href("%R/forumpost/%S?%s",p->zUuid,zQuery))[link]</a>
    }