Fossil SCM
In the hierarchical forum display, make sure that the edited post number is displayed, not the original post number.
Commit
776ce9e6450d276db846b0eceefb5cb7ef088d4b825afeeb0d005a69fb31ddfd
Parent
5a7267d9e70cb9a…
1 file changed
+1
-1
+1
-1
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -444,11 +444,11 @@ | ||
| 444 | 444 | if( pPost==0 ) continue; |
| 445 | 445 | if( pPost->zThreadTitle ){ |
| 446 | 446 | @ <h1>%h(pPost->zThreadTitle)</h1> |
| 447 | 447 | } |
| 448 | 448 | zDate = db_text(0, "SELECT datetime(%.17g)", pOPost->rDate); |
| 449 | - @ <p>(%d(p->sid)) By %h(pOPost->zUser) on %h(zDate) | |
| 449 | + @ <p>(%d(p->pLeaf?p->pLeaf->sid:p->sid)) By %h(pOPost->zUser) on %h(zDate) | |
| 450 | 450 | fossil_free(zDate); |
| 451 | 451 | if( g.perm.Debug ){ |
| 452 | 452 | @ <span class="debug">\ |
| 453 | 453 | @ <a href="%R/artifact/%h(p->zUuid)">(artifact)</a></span> |
| 454 | 454 | } |
| 455 | 455 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -444,11 +444,11 @@ | |
| 444 | if( pPost==0 ) continue; |
| 445 | if( pPost->zThreadTitle ){ |
| 446 | @ <h1>%h(pPost->zThreadTitle)</h1> |
| 447 | } |
| 448 | zDate = db_text(0, "SELECT datetime(%.17g)", pOPost->rDate); |
| 449 | @ <p>(%d(p->sid)) By %h(pOPost->zUser) on %h(zDate) |
| 450 | fossil_free(zDate); |
| 451 | if( g.perm.Debug ){ |
| 452 | @ <span class="debug">\ |
| 453 | @ <a href="%R/artifact/%h(p->zUuid)">(artifact)</a></span> |
| 454 | } |
| 455 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -444,11 +444,11 @@ | |
| 444 | if( pPost==0 ) continue; |
| 445 | if( pPost->zThreadTitle ){ |
| 446 | @ <h1>%h(pPost->zThreadTitle)</h1> |
| 447 | } |
| 448 | zDate = db_text(0, "SELECT datetime(%.17g)", pOPost->rDate); |
| 449 | @ <p>(%d(p->pLeaf?p->pLeaf->sid:p->sid)) By %h(pOPost->zUser) on %h(zDate) |
| 450 | fossil_free(zDate); |
| 451 | if( g.perm.Debug ){ |
| 452 | @ <span class="debug">\ |
| 453 | @ <a href="%R/artifact/%h(p->zUuid)">(artifact)</a></span> |
| 454 | } |
| 455 |