Migrate to new follows storage

This commit is contained in:
2019-11-19 13:51:54 +09:00
parent 99f5ae1b4f
commit 803d303420
14 changed files with 237 additions and 241 deletions

View File

@ -126,7 +126,7 @@ func Get(ctx aero.Context) error {
var friends []*arn.User
if user != nil {
friendIDs := utils.Intersection(character.Likes, user.Follows().Items)
friendIDs := utils.Intersection(character.Likes, user.FollowIDs)
friendObjects := arn.DB.GetMany("User", friendIDs)
for _, obj := range friendObjects {