Fossil SCM
Link to the next edit rather than the final edit
Commit
91a3a600e689794fd27bf2b500a94b8d9102d49091f0c713d15f792fa2fb3bd2
Parent
df916a9d019ba73…
1 file changed
+5
-5
+5
-5
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -467,15 +467,15 @@ | ||
| 467 | 467 | @ .%.*d(fossil_num_digits(p->pIrt->nEdit))(p->pIrt->rev)\ |
| 468 | 468 | } |
| 469 | 469 | @ </a> |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | - /* If this post was later edited, refer forward to the new version. */ | |
| 473 | - if( p->pEditTail ){ | |
| 474 | - @ updated by %z(href("%R/forumpost/%S?%s",p->pEditTail->zUuid,zQuery))\ | |
| 475 | - @ %d(p->pEditTail->sid)\ | |
| 476 | - @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditTail->rev)</a> | |
| 472 | + /* If this post was later edited, refer forward to the next edit. */ | |
| 473 | + if( p->pEditNext ){ | |
| 474 | + @ updated by %z(href("%R/forumpost/%S?%s",p->pEditNext->zUuid,zQuery))\ | |
| 475 | + @ %d(p->pEditNext->sid)\ | |
| 476 | + @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditNext->rev)</a> | |
| 477 | 477 | } |
| 478 | 478 | |
| 479 | 479 | /* Provide a link to select the individual post. */ |
| 480 | 480 | if( !bSelect ){ |
| 481 | 481 | @ %z(href("%R/forumpost/%S?%s",p->zUuid,zQuery))[link]</a> |
| 482 | 482 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -467,15 +467,15 @@ | |
| 467 | @ .%.*d(fossil_num_digits(p->pIrt->nEdit))(p->pIrt->rev)\ |
| 468 | } |
| 469 | @ </a> |
| 470 | } |
| 471 | |
| 472 | /* If this post was later edited, refer forward to the new version. */ |
| 473 | if( p->pEditTail ){ |
| 474 | @ updated by %z(href("%R/forumpost/%S?%s",p->pEditTail->zUuid,zQuery))\ |
| 475 | @ %d(p->pEditTail->sid)\ |
| 476 | @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditTail->rev)</a> |
| 477 | } |
| 478 | |
| 479 | /* Provide a link to select the individual post. */ |
| 480 | if( !bSelect ){ |
| 481 | @ %z(href("%R/forumpost/%S?%s",p->zUuid,zQuery))[link]</a> |
| 482 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -467,15 +467,15 @@ | |
| 467 | @ .%.*d(fossil_num_digits(p->pIrt->nEdit))(p->pIrt->rev)\ |
| 468 | } |
| 469 | @ </a> |
| 470 | } |
| 471 | |
| 472 | /* If this post was later edited, refer forward to the next edit. */ |
| 473 | if( p->pEditNext ){ |
| 474 | @ updated by %z(href("%R/forumpost/%S?%s",p->pEditNext->zUuid,zQuery))\ |
| 475 | @ %d(p->pEditNext->sid)\ |
| 476 | @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditNext->rev)</a> |
| 477 | } |
| 478 | |
| 479 | /* Provide a link to select the individual post. */ |
| 480 | if( !bSelect ){ |
| 481 | @ %z(href("%R/forumpost/%S?%s",p->zUuid,zQuery))[link]</a> |
| 482 |