Fossil

Check-in [a913716b4c]
Login

Check-in [a913716b4c]

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

Overview
Comment:The "fossil chat send" mechanism was broken by check-in [fc853823b2218a76] (chat history) because of changes to chat_create_tables(). This fixes the issue.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a913716b4c40cbbd37e6bcf83cf4e623e9b4597dd11d3ec00771b18520fc7edd
User & Date: drh 2024-08-08 00:28:16.099
Context
2024-08-08
12:10
Fix misinteraction of the chat send command and the chat search index. ... (check-in: 892dfd2b55 user: stephan tags: trunk)
00:28
The "fossil chat send" mechanism was broken by check-in [fc853823b2218a76] (chat history) because of changes to chat_create_tables(). This fixes the issue. ... (check-in: a913716b4c user: drh tags: trunk)
2024-08-06
22:35
The new zebra-striped table styling in the default skin was not targeting /wiki docs, only .wiki embedded docs, leaving them unstyled. ... (check-in: 072a860909 user: wyoung tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/chat.c.
420
421
422
423
424
425
426
427


428
429
430
431
432
433
434
  const char *zMsg;
  const char *zUserName;
  login_check_credentials();
  if( 0==g.perm.Chat ) {
    chat_emit_permissions_error(0);
    return;
  }
  chat_create_tables();


  zUserName = (g.zLogin && g.zLogin[0]) ? g.zLogin : "nobody";
  nByte = atoi(PD("file:bytes","0"));
  zMsg = PD("msg","");
  db_begin_write();
  db_unprotect(PROTECT_READONLY);
  chat_purge();
  if( nByte==0 ){







|
>
>







420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
  const char *zMsg;
  const char *zUserName;
  login_check_credentials();
  if( 0==g.perm.Chat ) {
    chat_emit_permissions_error(0);
    return;
  }
  if( !db_table_exists("repository","chat") ){
    return;
  }
  zUserName = (g.zLogin && g.zLogin[0]) ? g.zLogin : "nobody";
  nByte = atoi(PD("file:bytes","0"));
  zMsg = PD("msg","");
  db_begin_write();
  db_unprotect(PROTECT_READONLY);
  chat_purge();
  if( nByte==0 ){