diff --git a/go/internal/indexerhandler/feed.go b/go/internal/indexerhandler/feed.go index 631c906a7f..7c3a70ecc3 100644 --- a/go/internal/indexerhandler/feed.go +++ b/go/internal/indexerhandler/feed.go @@ -103,7 +103,10 @@ func (h *Handler) handleExecuteReactPost(_ *Message, execMsg *wasmtypes.MsgExecu } userReactions := make(map[string]interface{}) - post.UserReactions.Scan(&userReactions) + if err := json.Unmarshal(post.UserReactions, &userReactions); err != nil { + h.logger.Error("failed to unmarshal UserReactions", zap.String("data", string(post.UserReactions)), zap.Error(err)) + } + var users []networks.UserID reactedUsers, found := userReactions[reactPost.Icon] if found { diff --git a/go/pkg/feed/service.go b/go/pkg/feed/service.go index fee23cdb25..ce723daef3 100644 --- a/go/pkg/feed/service.go +++ b/go/pkg/feed/service.go @@ -178,7 +178,6 @@ func (s *FeedService) Posts(ctx context.Context, req *feedpb.PostsRequest) (*fee continue } - dbPost.UserReactions.Scan(&reactionsMap) for icon, users := range reactionsMap { ownState := false if queryUserID != "" {