Skip to content

Commit

Permalink
🎨 List only 512 unreferenced assets #13075
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 7, 2024
1 parent 06c3977 commit 558c354
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/api/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ func getUnusedAssets(c *gin.Context) {

unusedAssets := model.UnusedAssets()

// List only 256 unreferenced assets https://github.com/siyuan-note/siyuan/issues/13075
if len(unusedAssets) > 256 {
unusedAssets = unusedAssets[:256]
// List only 512 unreferenced assets https://github.com/siyuan-note/siyuan/issues/13075
if len(unusedAssets) > 512 {
unusedAssets = unusedAssets[:512]
}

ret.Data = map[string]interface{}{
Expand Down

0 comments on commit 558c354

Please sign in to comment.