Fossil SCM

In manifest_crosslink(), test for NULL, not 0, when looking for a newer edit of the first post of a forum thread. The firt column is never 0, so an older edit that arrived late gave its title to every timeline entry of the thread.

dmestas 2026-11-15 18:56 UTC small-fixes-2
Commit 43d645b446ef9a7b74f930ff3e19102cfef6be3f951eccdb5917a3bd32ccc651
1 file changed +1 -1
+1 -1
--- src/manifest.c
+++ src/manifest.c
@@ -2867,11 +2867,11 @@
28672867
);
28682868
/*
28692869
** If this edit is the most recent, then make it the title for
28702870
** all other entries for the same thread
28712871
*/
2872
- if( !db_exists("SELECT 1 FROM forumpost WHERE froot=%d AND firt=0"
2872
+ if( !db_exists("SELECT 1 FROM forumpost WHERE froot=%d AND firt IS NULL"
28732873
" AND fpid!=%d AND fmtime>%.17g", froot, rid, p->rDate)
28742874
){
28752875
/* This entry establishes a new title for all entries on the thread */
28762876
db_multi_exec(
28772877
"UPDATE event"
28782878
--- src/manifest.c
+++ src/manifest.c
@@ -2867,11 +2867,11 @@
2867 );
2868 /*
2869 ** If this edit is the most recent, then make it the title for
2870 ** all other entries for the same thread
2871 */
2872 if( !db_exists("SELECT 1 FROM forumpost WHERE froot=%d AND firt=0"
2873 " AND fpid!=%d AND fmtime>%.17g", froot, rid, p->rDate)
2874 ){
2875 /* This entry establishes a new title for all entries on the thread */
2876 db_multi_exec(
2877 "UPDATE event"
2878
--- src/manifest.c
+++ src/manifest.c
@@ -2867,11 +2867,11 @@
2867 );
2868 /*
2869 ** If this edit is the most recent, then make it the title for
2870 ** all other entries for the same thread
2871 */
2872 if( !db_exists("SELECT 1 FROM forumpost WHERE froot=%d AND firt IS NULL"
2873 " AND fpid!=%d AND fmtime>%.17g", froot, rid, p->rDate)
2874 ){
2875 /* This entry establishes a new title for all entries on the thread */
2876 db_multi_exec(
2877 "UPDATE event"
2878

Keyboard Shortcuts

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