/[LeafOK_CVS]/lbbs/src/article_post.c
ViewVC logotype

Diff of /lbbs/src/article_post.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.34 by sysadm, Sat Oct 18 13:22:52 2025 UTC Revision 1.36 by sysadm, Thu Oct 30 11:15:12 2025 UTC
# Line 32  Line 32 
32  #define TITLE_INPUT_MAX_LEN 72  #define TITLE_INPUT_MAX_LEN 72
33  #define ARTICLE_CONTENT_MAX_LEN 1024 * 1024 * 4 // 4MB  #define ARTICLE_CONTENT_MAX_LEN 1024 * 1024 * 4 // 4MB
34  #define ARTICLE_QUOTE_MAX_LINES 20  #define ARTICLE_QUOTE_MAX_LINES 20
 #define ARTICLE_QUOTE_LINE_MAX_LEN 76  
35    
36  #define MODIFY_DT_MAX_LEN 50  #define MODIFY_DT_MAX_LEN 50
37    
# Line 851  int article_reply(const SECTION_LIST *p_ Line 850  int article_reply(const SECTION_LIST *p_
850                  }                  }
851    
852                  // Apply LML render to content body                  // Apply LML render to content body
853                  len = lml_render(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, 1);                  len = lml_render(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, MAX_EDITOR_DATA_LINE_LENGTH - 3, 1);
854                  content_f[len] = '\0';                  content_f[len] = '\0';
855    
856                  // Remove control sequence                  // Remove control sequence
# Line 861  int article_reply(const SECTION_LIST *p_ Line 860  int article_reply(const SECTION_LIST *p_
860                                             "\n\n【 在 %s (%s) 的大作中提到: 】\n",                                             "\n\n【 在 %s (%s) 的大作中提到: 】\n",
861                                             p_article->username, p_article->nickname);                                             p_article->username, p_article->nickname);
862    
863                  quote_content_lines = split_data_lines(content_f, ARTICLE_QUOTE_LINE_MAX_LEN, line_offsets, ARTICLE_QUOTE_MAX_LINES + 1, 0, NULL);                  quote_content_lines = split_data_lines(content_f, MAX_EDITOR_DATA_LINE_LENGTH - 2, line_offsets, ARTICLE_QUOTE_MAX_LINES + 1, 0, NULL);
864                  for (i = 0; i < quote_content_lines; i++)                  for (i = 0; i < quote_content_lines; i++)
865                  {                  {
866                          memcpy(content + len, ": ", 2); // quote line prefix                          memcpy(content + len, ": ", 2); // quote line prefix


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1