jcs
/subtext
/amendments
/439
board: Delete cached index after post creation in both cases
jcs made amendment 439 about 1 year ago
--- board.c Fri Mar 17 15:39:54 2023
+++ board.c Fri Mar 17 21:10:04 2023
@@ -1111,8 +1111,6 @@ board_post_create(struct board *board, struct board_th
goto done;
}
xfree(&data);
-
- board_delete_cached_index(board);
} else {
if (!post->id)
post->id = bile_next_id(board->bile, BOARD_POST_RTYPE);
@@ -1198,6 +1196,8 @@ board_post_create(struct board *board, struct board_th
xfree(&data);
}
+ /* it would be nice not to have to rebuild this every time... */
+ board_delete_cached_index(board);
bile_flush(board->bile, true);
if (post->time > board->last_post_at)