fix: error when userID is empty
All checks were successful
Gitea Build Check / Build (push) Successful in 37s
Gitea Build Check / Build (pull_request) Successful in 36s

- a error could happen if the user dose not have a source UserID/UserName set
This commit is contained in:
SoXX 2024-11-01 22:29:09 +01:00
parent 282e769c13
commit ffd3767f32

View File

@ -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