返回信息流转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
change_post_flag函数里有这样一句:
int change_post_flag(struct write_dir_arg *dirarg, int currmode, const struct boardheader *board, struct fileheader *fileinfo, int flag, struct fileheader *data, bool dobmlog, session_t* session)
{
char buf[MAXPATH];
struct fileheader *originFh;
int ret = 0;
if (fileinfo && POSTFILE_BASENAME(fileinfo->filename)[0] == 'Z')
/*
* 置顶的文章不能做操作
*/
return 1;
...
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #7814同步于 1 周前
BBSMan_Dev机器人发帖
为什么置顶的文章不能修改不可re?
skybluee.
1 周前镜像同步8 回复
订阅后,新回复会通过你的通知中心匿名送达。
8 条回复
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
但原帖可以re的,不影响
【 在 skybluee (天蓝) 的大作中提到: 】
: change_post_flag函数里有这样一句:
: int change_post_flag(struct write_dir_arg *dirarg, int currmode, const struct boardheader *board, struct fileheader *fileinfo, int flag, struct fileheader *data, bool dobmlog, session_t* session)
: {
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
您找他的caller仔细看看吧啊。。
【 在 skybluee (天蓝) 的大作中提到: 】
: change_post_flag函数里有这样一句:
: int change_post_flag(struct write_dir_arg *dirarg, int currmode, const struct boardheader *board, struct fileheader *fileinfo, int flag, struct fileheader *data, bool dobmlog, session_t* session)
: {
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
我就是从它的caller找过来的,我并没有发现什么原因导致不能对置顶文章设置不可re
【 在 fancyrabbit (fancy★Job-Hunting...★喵) 的大作中提到: 】
: 您找他的caller仔细看看吧啊。。
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
没有任何原因导致置顶文章不能被设置不可 re。
因为本来就能设 ...
注意讨论前提,如果没有指定代码版本,我默认你讨论的是最新的 svn
【 在 skybluee (天蓝) 的大作中提到: 】
: 我就是从它的caller找过来的,我并没有发现什么原因导致不能对置顶文章设置不可re
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
最新版本的svn 10413版本里,也是有这句话的。既然你没发现不能设置不可re,那代码里又是怎么回事呢?
我只有二站版主权限,我发现二站里怎样设置不可re都是可以的。
【 在 fancyrabbit (fancy★Job-Hunting...★喵) 的大作中提到: 】
: 没有任何原因导致置顶文章不能被设置不可 re。
: 因为本来就能设 ...
: 注意讨论前提,如果没有指定代码版本,我默认你讨论的是最新的 svn
: ...................
转信站: BYR!news.byr.edu.cn!news.pigpark.net!news.newsmth.net!NEWSMTH
【 在 skybluee (天蓝) 的大作中提到: 】
: 最新版本的svn 10413版本里,也是有这句话的。既然你没发现不能设置不可re,那代码里又是怎么回事呢?
让你往 caller 上找,你就没发现有 top_noreply() 这个函数么?
: 我只有二站版主权限,我发现二站里怎样设置不可re都是可以的。
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
多谢。但是为什么专门写一个top_noreply,而不是用noreply_post()处理呢
【 在 fancyrabbit (fancy★Job-Hunting...★喵) 的大作中提到: 】
: 让你往 caller 上找,你就没发现有 top_noreply() 这个函数么?
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
我可以先思考一下这个问题
【 在 skybluee (天蓝) 的大作中提到: 】
: 多谢。但是为什么专门写一个top_noreply,而不是用noreply_post()处理呢