fix: error when userID is empty
- a error could happen if the user dose not have a source UserID/UserName set
This commit is contained in:
parent
282e769c13
commit
ffd3767f32
@ -62,6 +62,9 @@ func algorithm(ctx context.Context, plugInterface Plug, userSource models.UserSo
|
|||||||
return taskSummery, err
|
return taskSummery, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
userSource.UserID = models.UserID(profile.UserID)
|
||||||
|
userSource.AccountUsername = profile.UserName
|
||||||
|
|
||||||
nextPage := ""
|
nextPage := ""
|
||||||
var newPosts []models.Post
|
var newPosts []models.Post
|
||||||
var anthroveFaves []models.UserFavorite
|
var anthroveFaves []models.UserFavorite
|
||||||
|
Loading…
Reference in New Issue
Block a user