Fossil SCM

When showing the source of an edited post, show that exact version rather than the newest version

andygoth 2020-08-22 02:50 andygoth-forum-refactor
Commit df916a9d019ba735a6b4d176c6f660b16a2ce0566cd1ff2afade595359dd7542
1 file changed +2 -2
+2 -2
--- src/forum.c
+++ src/forum.c
@@ -590,13 +590,13 @@
590590
}
591591
}else{
592592
iIndentScale = 0;
593593
}
594594
595
- /* Find the selected post, or (if history not shown) its latest edit. */
595
+ /* Find the selected post, or (depending on parameters) its latest edit. */
596596
pSelect = fpid ? forumpost_forward(pThread->pFirst, fpid) : 0;
597
- if( !bHist && pSelect && pSelect->pEditTail ){
597
+ if( !bHist && mode!=FD_RAW && pSelect && pSelect->pEditTail ){
598598
pSelect = pSelect->pEditTail;
599599
}
600600
601601
/* When displaying only a single post, abort if no post was selected or the
602602
** selected forum post does not exist in the thread. Otherwise proceed to
603603
--- src/forum.c
+++ src/forum.c
@@ -590,13 +590,13 @@
590 }
591 }else{
592 iIndentScale = 0;
593 }
594
595 /* Find the selected post, or (if history not shown) its latest edit. */
596 pSelect = fpid ? forumpost_forward(pThread->pFirst, fpid) : 0;
597 if( !bHist && pSelect && pSelect->pEditTail ){
598 pSelect = pSelect->pEditTail;
599 }
600
601 /* When displaying only a single post, abort if no post was selected or the
602 ** selected forum post does not exist in the thread. Otherwise proceed to
603
--- src/forum.c
+++ src/forum.c
@@ -590,13 +590,13 @@
590 }
591 }else{
592 iIndentScale = 0;
593 }
594
595 /* Find the selected post, or (depending on parameters) its latest edit. */
596 pSelect = fpid ? forumpost_forward(pThread->pFirst, fpid) : 0;
597 if( !bHist && mode!=FD_RAW && pSelect && pSelect->pEditTail ){
598 pSelect = pSelect->pEditTail;
599 }
600
601 /* When displaying only a single post, abort if no post was selected or the
602 ** selected forum post does not exist in the thread. Otherwise proceed to
603

Keyboard Shortcuts

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