Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd113b1

Browse files
committed
排序修正
1 parent 4e9ab6e commit cd113b1

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

config/db.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS `website_setting` (
1717
`project_df_logo` varchar(255) NOT NULL DEFAULT '' COMMENT '开源项目默认logo',
1818
`seo_keywords` varchar(63) NOT NULL DEFAULT '' COMMENT '页面 seo 通用keywords',
1919
`seo_description` varchar(255) NOT NULL DEFAULT '' COMMENT '页面 seo 通用description',
20-
`index_nav` varchar(2044) NOT NULL DEFAULT '' COMMENT '首页顶部导航,json 格式',
20+
`index_nav` varchar(4088) NOT NULL DEFAULT '' COMMENT '首页顶部导航,json 格式',
2121
`created_at` timestamp NOT NULL DEFAULT '2013-03-15 14:38:09' COMMENT '创建时间',
2222
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
2323
PRIMARY KEY (`id`)

model/feed.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ func PublishFeed(object interface{}, objectExt interface{}, me *Me) {
7979
userLogin := &UserLogin{}
8080
db.MasterDB.Where("username=?", objdoc.AuthorTxt).Get(userLogin)
8181
uid = userLogin.Uid
82-
} else {
83-
if me == nil {
84-
me = &Me{
85-
IsAdmin: true,
86-
}
87-
}
8882
}
8983

9084
feed = &Feed{

0 commit comments

Comments
 (0)