diff --git a/pkg/services/friendships.go b/pkg/services/friendships.go index becb72f..1f63c50 100644 --- a/pkg/services/friendships.go +++ b/pkg/services/friendships.go @@ -14,6 +14,8 @@ func ListFriend(anyside models.Account, status models.FriendshipStatus) ([]model Where(&models.AccountFriendship{Status: status}). Where(&models.AccountFriendship{AccountID: anyside.ID}). Or(&models.AccountFriendship{RelatedID: anyside.ID}). + Preload("Account"). + Preload("Related"). Find(&relationships).Error; err != nil { return relationships, err }