From ddc932dae31ff89ef13072628d93ff65d585b30d Mon Sep 17 00:00:00 2001 From: ByteList Date: Tue, 30 Jun 2020 18:32:31 +0200 Subject: [PATCH] NewsFeed von 20 auf 42 heraufgesetzt, Issue #1 --- models/action.go | 4 ++-- templates/base/footer_content.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/action.go b/models/action.go index 59ccdb2d4..46d06c8fb 100644 --- a/models/action.go +++ b/models/action.go @@ -338,9 +338,9 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) { cond = cond.And(builder.Eq{"is_deleted": false}) } - actions := make([]*Action, 0, 20) + actions := make([]*Action, 0, 42) - if err := x.Limit(20).Desc("id").Where(cond).Find(&actions); err != nil { + if err := x.Limit(42).Desc("id").Where(cond).Find(&actions); err != nil { return nil, fmt.Errorf("Find: %v", err) } diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl index b99a00089..a121a2836 100644 --- a/templates/base/footer_content.tmpl +++ b/templates/base/footer_content.tmpl @@ -1,7 +1,7 @@