diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-01 22:43:55 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-01 22:43:55 +0800 |
commit | 22b83e02c800fb2d8f34afe5b38ff93bb9621dc1 (patch) | |
tree | c20154c330db857c13af416a77837aefcb9440a5 | |
parent | 8570dd318d1942203ee15c853b88dbd61451e0bf (diff) | |
download | pttbbs-22b83e02c800fb2d8f34afe5b38ff93bb9621dc1.tar pttbbs-22b83e02c800fb2d8f34afe5b38ff93bb9621dc1.tar.gz pttbbs-22b83e02c800fb2d8f34afe5b38ff93bb9621dc1.tar.bz2 pttbbs-22b83e02c800fb2d8f34afe5b38ff93bb9621dc1.tar.lz pttbbs-22b83e02c800fb2d8f34afe5b38ff93bb9621dc1.tar.xz pttbbs-22b83e02c800fb2d8f34afe5b38ff93bb9621dc1.tar.zst pttbbs-22b83e02c800fb2d8f34afe5b38ff93bb9621dc1.zip |
- rollback recommend system with author self-recommending.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3605 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 6b3427dc..86fc5d79 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2401,13 +2401,25 @@ recommend(int ent, fileheader_t * fhdr, const char *direct) move(b_lines, 0); clrtoeol(); + // why "recommend == 0" here? + // some users are complaining that they like to fxck up system + // with lots of recommend one-line text. + // since we don't support recognizing update of recommends now, + // they tend to use the counter to identify whether an arcitle + // has new recommends or not. + // so, make them happy here. +#ifndef OLDRECOMMEND + // no matter it is first time or not. if (strcmp(cuser.userid, fhdr->owner) == 0) +#else + // old format is one way counter, so let's relax. + if (fhdr->recommend == 0 && strcmp(cuser.userid, fhdr->owner) == 0) +#endif { - // owner recomment - // no matter it is first time or not. + // owner recommend type = 2; move(b_lines-1, 0); clrtoeol(); - outs("作者本人, 使用 → 加註方式\n"); + outs("作者本人首推, 使用 → 加註方式\n"); } #ifndef DEBUG else if (!(currmode & MODE_BOARD) && |