From ffd3767f3213066540a47a8f95ce25ce09153ec8 Mon Sep 17 00:00:00 2001 From: SoXX Date: Fri, 1 Nov 2024 22:29:09 +0100 Subject: [PATCH] fix: error when userID is empty - a error could happen if the user dose not have a source UserID/UserName set --- pkg/plug/algorithm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/plug/algorithm.go b/pkg/plug/algorithm.go index c080abf..09ad768 100644 --- a/pkg/plug/algorithm.go +++ b/pkg/plug/algorithm.go @@ -62,6 +62,9 @@ func algorithm(ctx context.Context, plugInterface Plug, userSource models.UserSo return taskSummery, err } + userSource.UserID = models.UserID(profile.UserID) + userSource.AccountUsername = profile.UserName + nextPage := "" var newPosts []models.Post var anthroveFaves []models.UserFavorite