Fossil SCM

In the hierarchical forum display, make sure that the edited post number is displayed, not the original post number.

drh 2019-07-18 17:45 trunk
Commit 776ce9e6450d276db846b0eceefb5cb7ef088d4b825afeeb0d005a69fb31ddfd
1 file changed +1 -1
+1 -1
--- src/forum.c
+++ src/forum.c
@@ -444,11 +444,11 @@
444444
if( pPost==0 ) continue;
445445
if( pPost->zThreadTitle ){
446446
@ <h1>%h(pPost->zThreadTitle)</h1>
447447
}
448448
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)
450450
fossil_free(zDate);
451451
if( g.perm.Debug ){
452452
@ <span class="debug">\
453453
@ <a href="%R/artifact/%h(p->zUuid)">(artifact)</a></span>
454454
}
455455
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button