🎨 API getTag add an optional parameter ignoreMaxListHint https://github.com/siyuan-note/siyuan/issues/16000

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-03 21:59:19 +08:00
parent 53f0467f73
commit 9f3cd7ca95
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 31 additions and 8 deletions

View file

@ -236,7 +236,7 @@ type Tag struct {
type Tags []*Tag
func BuildTags(ignoreMaxListHintArg bool) (ret *Tags) {
func BuildTags(ignoreMaxListHintArg bool, appID string) (ret *Tags) {
FlushTxQueue()
sql.FlushQueue()
@ -255,7 +255,7 @@ func BuildTags(ignoreMaxListHintArg bool) (ret *Tags) {
*tmp = append(*tmp, tag)
countTag(tag, &total)
if Conf.FileTree.MaxListCount < total && !ignoreMaxListHintArg {
util.PushMsg(fmt.Sprintf(Conf.Language(243), Conf.FileTree.MaxListCount), 7000)
util.PushMsgWithApp(appID, fmt.Sprintf(Conf.Language(243), Conf.FileTree.MaxListCount), 7000)
break
}
}