Fossil

Check-in [46697ca1]
Login

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

Overview
Comment:Make the title of a deleted forum thread "(Deleted)".
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | forum-v2
Files: files | file ages | folders
SHA3-256: 46697ca1951622905d5f829fd3e44e976bbabe0881b254ecd9a08031ec435ce5
User & Date: drh 2018-07-31 17:38:53.378
Context
2018-07-31
23:37
Make the backoffice-nodelay a setting visible on the settings display, and make it on by default. This is a temporary fix to avoid webserver problems until such time as I can figure out what it is about backserver sleeping that is causing the webserver to latch up. ... (check-in: 2566a37e user: drh tags: forum-v2)
20:34
Use the fork() system call (when available) to start backoffice, in an attempt to avoid unseemly delays in upstream. ... (Closed-Leaf check-in: e882081f user: drh tags: fork-backoffice)
17:38
Make the title of a deleted forum thread "(Deleted)". ... (check-in: 46697ca1 user: drh tags: forum-v2)
17:13
Only show the "Moderation Requests" submenu button if there exist one or more posts in need of moderation. ... (check-in: 397c32b6 user: drh tags: forum-v2)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/manifest.c.
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
      p->rid, froot, fprev, firt, p->rDate
    );
    if( firt==0 ){
      /* This is the start of a new thread, either the initial entry
      ** or an edit of the initial entry. */
      zTitle = p->zThreadTitle;
      if( zTitle==0 || zTitle[0]==0 ){
        zTitle = "<i>Deleted</i>";
      }
      zFType = fprev ? "Edit" : "Post";
      db_multi_exec(
        "REPLACE INTO event(type,mtime,objid,user,comment)"
        "VALUES('f',%.17g,%d,%Q,'%q: %q')",
        p->rDate, rid, p->zUser, zFType, zTitle
      );







|







2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
      p->rid, froot, fprev, firt, p->rDate
    );
    if( firt==0 ){
      /* This is the start of a new thread, either the initial entry
      ** or an edit of the initial entry. */
      zTitle = p->zThreadTitle;
      if( zTitle==0 || zTitle[0]==0 ){
        zTitle = "(Deleted)";
      }
      zFType = fprev ? "Edit" : "Post";
      db_multi_exec(
        "REPLACE INTO event(type,mtime,objid,user,comment)"
        "VALUES('f',%.17g,%d,%Q,'%q: %q')",
        p->rDate, rid, p->zUser, zFType, zTitle
      );