mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-17 07:57:37 +08:00
fix: remove unused newLabels parameter from UpdatePage
The newLabels parameter was accepted but never used in the function body; labels are synced through the separate updateLabels/AddPageLabels /DeletePageLabel calls. The dead parameter misled callers into thinking labels were being set during the page update. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
5b87945f23
commit
3e71d65f61
@ -534,7 +534,7 @@ func (api *API) CreatePage(
|
||||
return request.Response.(*PageInfo), nil
|
||||
}
|
||||
|
||||
func (api *API) UpdatePage(page *PageInfo, newContent string, minorEdit bool, versionMessage string, newLabels []string, appearance string, emojiString string) error {
|
||||
func (api *API) UpdatePage(page *PageInfo, newContent string, minorEdit bool, versionMessage string, appearance string, emojiString string) error {
|
||||
nextPageVersion := page.Version.Number + 1
|
||||
oldAncestors := []map[string]interface{}{}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user