summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authormhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-07 22:11:46 +0800
committermhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-07 22:11:46 +0800
commit852373458e0f309276ad3a32624aabb3b41ec6a7 (patch)
tree822dc04329f4cc13278278b0d7bf24a334f462f1 /mbbsd
parent66b4690b4678e6d2e19aa6838ae6436b57b9de11 (diff)
downloadpttbbs-852373458e0f309276ad3a32624aabb3b41ec6a7.tar
pttbbs-852373458e0f309276ad3a32624aabb3b41ec6a7.tar.gz
pttbbs-852373458e0f309276ad3a32624aabb3b41ec6a7.tar.bz2
pttbbs-852373458e0f309276ad3a32624aabb3b41ec6a7.tar.lz
pttbbs-852373458e0f309276ad3a32624aabb3b41ec6a7.tar.xz
pttbbs-852373458e0f309276ad3a32624aabb3b41ec6a7.tar.zst
pttbbs-852373458e0f309276ad3a32624aabb3b41ec6a7.zip
Add support for querying article URL.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4424 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 3831ec12..a3fcbc76 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -3429,7 +3429,7 @@ view_postinfo(int ent, const fileheader_t * fhdr, const char *direct, int crs_ln
aidu_t aidu = 0;
int l = crs_ln + 3; /* line of cursor */
int area_l = l + 1;
- const int area_lines = 4;
+ const int area_lines = 5;
if(!fhdr || fhdr->filename[0] == '.' || !fhdr->filename[0])
return DONOTHING;
@@ -3480,6 +3480,19 @@ view_postinfo(int ent, const fileheader_t * fhdr, const char *direct, int crs_ln
prints("¢x\n");
}
+#ifdef QUERY_ARTICLE_URL
+ if(currboard && currboard[0])
+ {
+ prints("¢x " URL_DISPLAYNAME ": "
+ ANSI_COLOR(1) URL_PREFIX "/%s/%s.html" ANSI_RESET "\n",
+ currboard, fhdr->filename);
+ }
+ else
+ {
+ prints("¢x\n");
+ }
+#endif
+
if(fhdr->filemode & FILE_ANONYMOUS)
/* When the file is anonymous posted, fhdr->multi.anon_uid is author.
* see do_general() */