Skip to content

Commit

Permalink
Merge pull request #46 from dwarvesf/fix/truncate-memo-list-cmd-content
Browse files Browse the repository at this point in the history
fix: truncate memo list cmd content
  • Loading branch information
baenv authored Jun 28, 2024
2 parents 3133722 + cc0ed96 commit d78cfbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/discord/view/memo/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ func (v *Memo) ListMemoLogs(original *model.DiscordMessage, memos []model.MemoLo
content += fmt.Sprintf("🔹 **%s** - %v posts\n", strings.ToUpper(category), len(memos))

tooLarge := false
if len(memos) > 20 {
if len(memos) > 7 {
tooLarge = true
memos = memos[:20]
memos = memos[:7]
}

for i, memo := range memos {
Expand Down

0 comments on commit d78cfbf

Please sign in to comment.