dkforest

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

commit c8e07ddafbae9ad753bcf8253f4c80ade379ebbf
parent 1bd9414d1aa18c8519a0359245ad72e5ead837d2
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 29 Jan 2023 18:40:33 -0800

fix links shorthand

Diffstat:
Mpkg/database/tableLinks.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/database/tableLinks.go b/pkg/database/tableLinks.go @@ -83,7 +83,7 @@ func GetRecentLinks() (out []Link, err error) { } func GetLinkByShorthand(shorthand string) (out Link, err error) { - err = DB.First(&out, "shorthand = ?", shorthand).Error + err = DB.Preload("OwnerUser").First(&out, "shorthand = ?", shorthand).Error return }