Check-in [df916a9d01]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:When showing the source of an edited post, show that exact version rather than the newest version
Timelines: family | ancestors | descendants | both | andygoth-forum-refactor
Files: files | file ages | folders
SHA3-256: df916a9d019ba735a6b4d176c6f660b16a2ce0566cd1ff2afade595359dd7542
User & Date: andygoth 2020-08-22 02:50:36.932
Context
2020-08-22
02:53
Link to the next edit rather than the final edit check-in: 91a3a600e6 user: andygoth tags: andygoth-forum-refactor
02:50
When showing the source of an edited post, show that exact version rather than the newest version check-in: df916a9d01 user: andygoth tags: andygoth-forum-refactor
02:38
Unify and regularize forum display code check-in: 6999639bbb user: andygoth tags: andygoth-forum-refactor
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/forum.c.
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
    while( iIndentScale>1 && iIndentScale*pThread->mxIndent>25 ){
      iIndentScale--;
    }
  }else{
    iIndentScale = 0;
  }

  /* Find the selected post, or (if history not shown) its latest edit. */
  pSelect = fpid ? forumpost_forward(pThread->pFirst, fpid) : 0;
  if( !bHist && pSelect && pSelect->pEditTail ){
    pSelect = pSelect->pEditTail;
  }

  /* When displaying only a single post, abort if no post was selected or the
  ** selected forum post does not exist in the thread.  Otherwise proceed to
  ** display the entire thread without marking any posts as selected. */
  if( !pSelect && (mode==FD_RAW || mode==FD_SINGLE) ){







|

|







588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
    while( iIndentScale>1 && iIndentScale*pThread->mxIndent>25 ){
      iIndentScale--;
    }
  }else{
    iIndentScale = 0;
  }

  /* Find the selected post, or (depending on parameters) its latest edit. */
  pSelect = fpid ? forumpost_forward(pThread->pFirst, fpid) : 0;
  if( !bHist && mode!=FD_RAW && pSelect && pSelect->pEditTail ){
    pSelect = pSelect->pEditTail;
  }

  /* When displaying only a single post, abort if no post was selected or the
  ** selected forum post does not exist in the thread.  Otherwise proceed to
  ** display the entire thread without marking any posts as selected. */
  if( !pSelect && (mode==FD_RAW || mode==FD_SINGLE) ){