dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 6eb59c351cd1ed0e3c05798b9a8185dc0185e4a9
parent ac3823f40de1f7f1c12eb7e7f0275d665032295e
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon,  3 Apr 2023 13:55:32 -0700

typo

Diffstat:
Mpkg/web/handlers/handlers.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -1349,9 +1349,9 @@ func LinksDownloadHandler(c echo.Context) error { for _, category := range categories { categoriesMap[category.ID] = category.Name } - // Get all "categories links" associations between links and their tags + // Get all "categories links" associations between links and their categories categoriesLinks, _ := db.GetCategoriesLinks() - // Build a map of all tag IDs for a given link ID + // Build a map of all categories IDs for a given link ID categoriesLinksMap := make(map[int64][]int64) for _, cl := range categoriesLinks { categoriesLinksMap[cl.LinkID] = append(categoriesLinksMap[cl.LinkID], cl.CategoryID) @@ -1363,7 +1363,7 @@ func LinksDownloadHandler(c echo.Context) error { w := csv.NewWriter(buf) _ = w.Write([]string{"UUID", "URL", "Title", "Description", "Categories"}) for _, link := range links { - // Get all tags for the link + // Get all categories for the link categoryNames := make([]string, 0) categoryIDs := categoriesLinksMap[link.ID] for _, tagID := range categoryIDs {