From 8b23197d15e24e313858c3ae6a84935e50b5c8af Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 20 Mar 2003 14:46:50 +0000 Subject: do NOT post edited article to ALLPOST in hidden board git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@703 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 5c0b914b..2f69eeba 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.81 2003/03/18 14:27:13 victor Exp $ */ +/* $Id: bbs.c,v 1.82 2003/03/20 14:46:50 in2 Exp $ */ #include "bbs.h" static void @@ -764,7 +764,10 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) touchdircache(currbid); } - do_allpost(&postfile, fpath, cuser.userid); + if (!(currbrdattr & BRD_HIDE) && + (!bp->level || (currbrdattr & BRD_POSTMASK))) { + do_allpost(&postfile, fpath, cuser.userid); + } return FULLUPDATE; } -- cgit v1.2.3