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

@ -46,11 +46,9 @@ func (item *AnimeListItem) Edit(ctx aero.Context, key string, value reflect.Valu
// Broadcast event to all users so they can reload the activity page if needed.
for receiver := range StreamUsers() {
receiverIsFollowing := Contains(receiver.Follows().Items, user.ID)
receiver.BroadcastEvent(&aero.Event{
Name: "activity",
Data: receiverIsFollowing,
Data: receiver.IsFollowing(user.ID),
})
}
}