summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-20 22:46:50 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-20 22:46:50 +0800
commitece31d2ba76ba5dae66f3f16d8297c86bca86424 (patch)
treea70548e1d10b969b3380b0010b1868c2651ca891
parent42ae760766ba3b538c014c393f53c62174c57f43 (diff)
downloadpttbbs-ece31d2ba76ba5dae66f3f16d8297c86bca86424.tar
pttbbs-ece31d2ba76ba5dae66f3f16d8297c86bca86424.tar.gz
pttbbs-ece31d2ba76ba5dae66f3f16d8297c86bca86424.tar.bz2
pttbbs-ece31d2ba76ba5dae66f3f16d8297c86bca86424.tar.lz
pttbbs-ece31d2ba76ba5dae66f3f16d8297c86bca86424.tar.xz
pttbbs-ece31d2ba76ba5dae66f3f16d8297c86bca86424.tar.zst
pttbbs-ece31d2ba76ba5dae66f3f16d8297c86bca86424.zip
do NOT post edited article to ALLPOST in hidden board
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@703 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 5c0b914b..2f69eeba 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/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;
}