AmendHub

Download:

jcs

/

subtext

/

amendments

/

515

board: Make 's' show the post again


jcs made amendment 515 10 months ago
--- board.c Thu Jun 15 10:36:35 2023 +++ board.c Thu Jun 15 10:58:01 2023 @@ -880,13 +880,14 @@ board_post_read(struct session *s, struct board *board { '<', "<Nn", "Read newer post" }, { '>', ">Pp", "Read older post" }, { 'r', "Rr", "Reply to this post" }, + { 's', "Ss", "Show this post" }, { 'd', "Dd", "Delete this post" }, { 'l', "Ll", "List posts" }, { 'q', "QqXx", "Return to threads" }, { '?', "?", "List these options" }, }; static const char prompt_help[] = - "<:Newer >:Older R:Reply D:Delete Q:Return ?:Help"; + "<:Newer >:Older R:Reply S:Show D:Delete L:List Q:Return ?:Help"; char time[32], prompt[7 + member_size(struct board, name) + 8]; struct board_thread thread; struct board_post post; @@ -904,7 +905,8 @@ board_post_read(struct session *s, struct board *board if (dopts == NULL) return 0; memcpy(dopts, opts, sizeof(opts)); - + +show_post: if (board->ftn_area[0]) { size = bile_read_alloc(board->bile, BOARD_FTN_POST_RTYPE, id, &data); @@ -1068,6 +1070,9 @@ board_post_read(struct session *s, struct board *board ret = POST_READ_RETURN_FIND; done = true; } + break; + case 's': + goto show_post; break; case '<': ret = POST_READ_RETURN_NEWER;