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

Diff of /lbbs/src/section_list_display.c

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

Revision 1.20 by sysadm, Thu Jun 12 12:14:28 2025 UTC Revision 1.21 by sysadm, Fri Jun 13 12:01:27 2025 UTC
# Line 544  int section_list_display(const char *sna Line 544  int section_list_display(const char *sna
544                                          }                                          }
545                                          break;                                          break;
546                                  case 'r': // Reply article                                  case 'r': // Reply article
547                                          if (article_post(p_section, p_articles[selected_index], ARTICLE_POST_REPLY) < 0)                                          if (article_reply(p_section, p_articles[selected_index]) < 0)
548                                          {                                          {
549                                                  log_error("article_post(aid=%d, REPLY) error\n", p_articles[selected_index]->aid);                                                  log_error("article_post(aid=%d, REPLY) error\n", p_articles[selected_index]->aid);
550                                          }                                          }
# Line 571  int section_list_display(const char *sna Line 571  int section_list_display(const char *sna
571                          }                          }
572                          break;                          break;
573                  case POST_ARTICLE:                  case POST_ARTICLE:
574                          if (article_post(p_section, NULL, ARTICLE_POST_NEW) < 0)                          if (article_post(p_section) < 0)
575                          {                          {
576                                  log_error("article_post(sid=%d, NEW) error\n", p_section->sid);                                  log_error("article_post(sid=%d, NEW) error\n", p_section->sid);
577                          }                          }
# Line 586  int section_list_display(const char *sna Line 586  int section_list_display(const char *sna
586                          {                          {
587                                  break;                                  break;
588                          }                          }
589                          if (article_post(p_section, p_articles[selected_index], ARTICLE_POST_EDIT) < 0)                          if (article_modify(p_section, p_articles[selected_index]) < 0)
590                          {                          {
591                                  log_error("article_post(aid=%d, EDIT) error\n", p_articles[selected_index]->aid);                                  log_error("article_post(aid=%d, EDIT) error\n", p_articles[selected_index]->aid);
592                          }                          }


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

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