From 22b83e02c800fb2d8f34afe5b38ff93bb9621dc1 Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 1 Dec 2007 14:43:55 +0000 Subject: - rollback recommend system with author self-recommending. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3605 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'mbbsd') 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) && -- cgit v1.2.3