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.
Commit
43d645b446ef9a7b74f930ff3e19102cfef6be3f951eccdb5917a3bd32ccc651
Parent
7c052d3a719382a…
1 file changed
+1
-1
+1
-1
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -2867,11 +2867,11 @@ | ||
| 2867 | 2867 | ); |
| 2868 | 2868 | /* |
| 2869 | 2869 | ** If this edit is the most recent, then make it the title for |
| 2870 | 2870 | ** all other entries for the same thread |
| 2871 | 2871 | */ |
| 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" | |
| 2873 | 2873 | " AND fpid!=%d AND fmtime>%.17g", froot, rid, p->rDate) |
| 2874 | 2874 | ){ |
| 2875 | 2875 | /* This entry establishes a new title for all entries on the thread */ |
| 2876 | 2876 | db_multi_exec( |
| 2877 | 2877 | "UPDATE event" |
| 2878 | 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=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 |