Fossil SCM

Be sure to send forum event notifications in chronological order.

drh 2018-08-10 20:30 trunk
Commit b4602502114bef6035687e1695743ed7132a1d584e37ab709d247204c83f3799
1 file changed +2 -1
+2 -1
--- src/email.c
+++ src/email.c
@@ -1912,11 +1912,11 @@
19121912
" WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid"
19131913
" AND tagxref.rid=blob.rid AND tagxref.tagtype>0))"
19141914
" || ')' as comment," /* 2 */
19151915
" wantalert.eventId," /* 3 */
19161916
" wantalert.needMod" /* 4 */
1917
- " FROM temp.wantalert CROSS JOIN event CROSS JOIN blob"
1917
+ " FROM temp.wantalert, event, blob"
19181918
" WHERE blob.rid=event.objid"
19191919
" AND event.objid=substr(wantalert.eventId,2)+0"
19201920
" AND (%d OR eventId NOT GLOB 'f*')"
19211921
" ORDER BY event.mtime",
19221922
doDigest
@@ -1981,10 +1981,11 @@
19811981
" wantalert.needMod" /* 5 */
19821982
" FROM temp.wantalert, event, forumpost"
19831983
" WHERE event.objid=substr(wantalert.eventId,2)+0"
19841984
" AND eventId GLOB 'f*'"
19851985
" AND forumpost.fpid=event.objid"
1986
+ " ORDER BY event.mtime"
19861987
);
19871988
zFrom = db_get("email-self",0);
19881989
zSub = db_get("email-subname","");
19891990
while( db_step(&q)==SQLITE_ROW ){
19901991
Manifest *pPost = manifest_get(db_column_int(&q,0), CFTYPE_FORUM, 0);
19911992
--- src/email.c
+++ src/email.c
@@ -1912,11 +1912,11 @@
1912 " WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid"
1913 " AND tagxref.rid=blob.rid AND tagxref.tagtype>0))"
1914 " || ')' as comment," /* 2 */
1915 " wantalert.eventId," /* 3 */
1916 " wantalert.needMod" /* 4 */
1917 " FROM temp.wantalert CROSS JOIN event CROSS JOIN blob"
1918 " WHERE blob.rid=event.objid"
1919 " AND event.objid=substr(wantalert.eventId,2)+0"
1920 " AND (%d OR eventId NOT GLOB 'f*')"
1921 " ORDER BY event.mtime",
1922 doDigest
@@ -1981,10 +1981,11 @@
1981 " wantalert.needMod" /* 5 */
1982 " FROM temp.wantalert, event, forumpost"
1983 " WHERE event.objid=substr(wantalert.eventId,2)+0"
1984 " AND eventId GLOB 'f*'"
1985 " AND forumpost.fpid=event.objid"
 
1986 );
1987 zFrom = db_get("email-self",0);
1988 zSub = db_get("email-subname","");
1989 while( db_step(&q)==SQLITE_ROW ){
1990 Manifest *pPost = manifest_get(db_column_int(&q,0), CFTYPE_FORUM, 0);
1991
--- src/email.c
+++ src/email.c
@@ -1912,11 +1912,11 @@
1912 " WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid"
1913 " AND tagxref.rid=blob.rid AND tagxref.tagtype>0))"
1914 " || ')' as comment," /* 2 */
1915 " wantalert.eventId," /* 3 */
1916 " wantalert.needMod" /* 4 */
1917 " FROM temp.wantalert, event, blob"
1918 " WHERE blob.rid=event.objid"
1919 " AND event.objid=substr(wantalert.eventId,2)+0"
1920 " AND (%d OR eventId NOT GLOB 'f*')"
1921 " ORDER BY event.mtime",
1922 doDigest
@@ -1981,10 +1981,11 @@
1981 " wantalert.needMod" /* 5 */
1982 " FROM temp.wantalert, event, forumpost"
1983 " WHERE event.objid=substr(wantalert.eventId,2)+0"
1984 " AND eventId GLOB 'f*'"
1985 " AND forumpost.fpid=event.objid"
1986 " ORDER BY event.mtime"
1987 );
1988 zFrom = db_get("email-self",0);
1989 zSub = db_get("email-subname","");
1990 while( db_step(&q)==SQLITE_ROW ){
1991 Manifest *pPost = manifest_get(db_column_int(&q,0), CFTYPE_FORUM, 0);
1992

Keyboard Shortcuts

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