Fossil SCM
When showing the source of an edited post, show that exact version rather than the newest version
Commit
df916a9d019ba735a6b4d176c6f660b16a2ce0566cd1ff2afade595359dd7542
Parent
6999639bbb87f64…
1 file changed
+2
-2
+2
-2
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -590,13 +590,13 @@ | ||
| 590 | 590 | } |
| 591 | 591 | }else{ |
| 592 | 592 | iIndentScale = 0; |
| 593 | 593 | } |
| 594 | 594 | |
| 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. */ | |
| 596 | 596 | pSelect = fpid ? forumpost_forward(pThread->pFirst, fpid) : 0; |
| 597 | - if( !bHist && pSelect && pSelect->pEditTail ){ | |
| 597 | + if( !bHist && mode!=FD_RAW && pSelect && pSelect->pEditTail ){ | |
| 598 | 598 | pSelect = pSelect->pEditTail; |
| 599 | 599 | } |
| 600 | 600 | |
| 601 | 601 | /* When displaying only a single post, abort if no post was selected or the |
| 602 | 602 | ** selected forum post does not exist in the thread. Otherwise proceed to |
| 603 | 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 (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 |