318 Commits

Author SHA1 Message Date
alsotang
e652f25ac7 when upload file reach max size, return friendly error msg. fix #633 2015-11-27 18:06:53 +08:00
alsotang
ddab9fbc94 github login 2015-11-23 20:23:56 +08:00
alsotang
5ace697da3 email 在注册后不必一直出现 2015-11-23 17:16:27 +08:00
alsotang
355cbb8098 登录时更友好的错误提示 2015-11-23 17:13:40 +08:00
alsotang
beaba3bf88 继续修补 passport-github 升级后的 emails 字段问题 2015-11-23 16:29:09 +08:00
Jackson Tian
c652c28df1 fix TypeError when profile without emails 2015-11-23 12:24:28 +08:00
alsotang
fe299e3ca6 remove unnecessary validator.escape 2015-10-29 13:43:28 +08:00
alsotang
57d7236624 remove unnecessary escape 2015-09-02 11:15:40 +08:00
alsotang
bd29a35067 同上 2015-08-27 17:12:17 +08:00
alsotang
f92f929f75 Node.js 新手入门 seo 2015-08-27 17:01:33 +08:00
alsotang
996bf7c6b6 当点赞数至少为 3 时,才高亮 2015-08-12 21:01:10 +08:00
alsotang
2a8b645030 适应 wiredtiger 的重复 key 报错 2015-08-11 22:14:31 +08:00
alsotang
f13ec3badb 去掉收藏功能 2015-08-07 18:13:32 +08:00
alsotang
86699eb0ed pages number cache fix 2015-08-07 17:58:24 +08:00
alsotang
3ae1612c0a 订正数据库,精简 user is_block 的查询逻辑 2015-08-04 22:38:27 +08:00
alsotang
183fed23ca Revert "reformat code"
This reverts commit 5426982f5a128ec271738a51f9366dfd5b05565a.
2015-07-01 15:17:45 +08:00
alsotang
5426982f5a reformat code 2015-07-01 15:15:37 +08:00
Jason Lee
adde0de422 优化通知的查询方式; 2015-05-29 11:53:13 +08:00
alsotang
acd1626d9e Merge commit 'c1ef713a863eaf3000048233b540ce35c44ac42b' 2015-05-27 22:15:25 +08:00
Jason Lee
3d72bd0c0a Remove unused require 2015-05-25 21:13:33 +08:00
Jason Lee
15c9768074 Mongoose log add runtime, use mquery TraceFunction (So that need new verion of Mongoose) 2015-05-25 21:09:35 +08:00
Jason Lee
43d9de28e5 Route methods use lowerCamelCase style 2015-05-25 11:14:14 +08:00
Jason Lee
e0043017b1 修正代码,之前理解错误了; 2015-05-23 23:02:33 +08:00
Jason Lee
2c5feb63fe controllers/topic.js 对齐等号赋值; 2015-05-23 23:02:23 +08:00
Jason Lee
7cb8205fe8 对齐等号赋值 2015-05-23 22:43:36 +08:00
Jason Lee
53b2a37b47 给 Response 扩展 render404, renderError 函数,替代之前重复 render 错误页面的代码; 2015-05-23 22:03:31 +08:00
Jason Lee
1618b2119c 增加 BaseModel,用 mongoose plugin 的方式为每个 Model 扩展 static, instance 函数;
发现有许多转换 create_at, updated_at 的动作,移到 BaseModel 里面,简化代码;
2015-05-23 21:25:09 +08:00
Jason Lee
57635a7d83 Same name style for views vars; 2015-05-23 20:21:53 +08:00
alsotang
0f6cc14f6b mongodb 注入漏洞 2015-05-05 19:43:36 +08:00
alsotang
8be2e14a29 topic 详情页缓存零回复主题 2015-04-23 22:57:13 +08:00
alsotang
778ede2adf 零回复的主题不显示招聘栏目 2015-04-23 22:51:56 +08:00
alsotang
825a932d7a api topic 支持取精华帖 2015-04-07 21:30:26 +08:00
alsotang
30f42cd595 api 接口软删除展示问题 2015-04-04 22:33:48 +08:00
alsotang
e4a1886527 软删除 2015-04-04 20:41:30 +08:00
alsotang
4ab2d4c337 fix 缓存无效问题 2015-04-04 18:30:45 +08:00
alsotang
67c098202b 两项改进
1. nodejs 层面 ratelimit 加入
2. 缓存用上 redis, 包括 common/cache.js 和 session
2015-04-04 17:29:18 +08:00
alsotang
3333b399a4 fix #500 。主题可被锁定 2015-03-17 22:02:26 +08:00
alsotang
138a576a35 管理员可以删除评论 2015-03-16 17:24:05 +08:00
alsotang
00381f3cff 不自动记录所在 tab 2015-03-15 18:25:06 +08:00
alsotang
a9eba1a2b0 hotfix qrcode 2015-02-14 01:47:54 +08:00
alsotang
a52a0fe2e0 更清晰的二维码 2015-02-14 01:38:45 +08:00
Lance Li
63a88111c2 在页面右侧增加客户端下载二维码 2015-02-08 23:15:25 +08:00
alsotang
5147db895e update mongoose to 3.9.7 2015-02-07 17:13:37 +08:00
alsotang
abde0a4350 github 登陆不再修改 loginname 2015-02-04 12:38:58 +08:00
alsotang
b8da6b8e98 允许用户通过 github 更改 email 2015-01-21 01:37:35 +08:00
alsotang
36136430ba fix test 2014-12-11 11:23:11 +08:00
alsotang
c9aa5cef29 fix #465 2014-12-11 11:08:53 +08:00
alsotang
9ee738434d 防止 mongodb 注入 2014-12-09 00:10:46 +08:00
alsotang
ea801217a0 fix #459 。加入【精华】版块 2014-11-20 22:58:01 +08:00
alsotang
afff071e89 markdown linkuser 小修复 2014-11-19 19:30:24 +08:00