Fossil

Check-in [0e78f746]
Login

Check-in [0e78f746]

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

Overview
Comment:For the chronological display of forum posts, show edited or deleted posts using text/plain. Item 4 in forum post 04e5ea0d88.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0e78f746554e07180d2612567a06f984834daed2a6642ca889356234523e6406
User & Date: drh 2020-04-22 12:08:40
Context
2020-04-22
14:31
Add the undocumented "threadtable" query parameter to the forum chronological view, in order to show the raw thread table data for debugging purposes. ... (check-in: dbdf50d5 user: drh tags: trunk)
12:08
For the chronological display of forum posts, show edited or deleted posts using text/plain. Item 4 in forum post 04e5ea0d88. ... (check-in: 0e78f746 user: drh tags: trunk)
11:59
Fix ./configure so that the --with-openssl=tree option works better. ... (check-in: 19f11a8d user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/forum.c.

465
466
467
468
469
470
471






472

473
474
475
476
477
478
479
480
    }
    isPrivate = content_is_private(p->fpid);
    sameUser = notAnon && fossil_strcmp(pPost->zUser, g.zLogin)==0;
    @ </h3>
    if( isPrivate && !g.perm.ModForum && !sameUser ){
      @ <p><span class="modpending">Awaiting Moderator Approval</span></p>
    }else{






      forum_render(0, bRawMode?"text/plain":pPost->zMimetype, pPost->zWiki,

                   0, 1);
    }
    if( g.perm.WrForum && p->pLeaf==0 ){
      int sameUser = login_is_individual()
                     && fossil_strcmp(pPost->zUser, g.zLogin)==0;
      @ <p><form action="%R/forumedit" method="POST">
      @ <input type="hidden" name="fpid" value="%s(p->zUuid)">
      if( !isPrivate ){







>
>
>
>
>
>
|
>
|







465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
    }
    isPrivate = content_is_private(p->fpid);
    sameUser = notAnon && fossil_strcmp(pPost->zUser, g.zLogin)==0;
    @ </h3>
    if( isPrivate && !g.perm.ModForum && !sameUser ){
      @ <p><span class="modpending">Awaiting Moderator Approval</span></p>
    }else{
      const char *zMimetype;
      if( bRawMode ){
        zMimetype = "text/plain";
      }else if( p->pLeaf!=0 ){
        zMimetype = "text/plain";
      }else{
        zMimetype = pPost->zMimetype;
      }
      forum_render(0, zMimetype, pPost->zWiki, 0, 1);
    }
    if( g.perm.WrForum && p->pLeaf==0 ){
      int sameUser = login_is_individual()
                     && fossil_strcmp(pPost->zUser, g.zLogin)==0;
      @ <p><form action="%R/forumedit" method="POST">
      @ <input type="hidden" name="fpid" value="%s(p->zUuid)">
      if( !isPrivate ){