From fa357b4bff0ce4f4eeb4422adf769c83b25a430c Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Sat, 10 Dec 2022 14:56:20 -0800 Subject: [PATCH] Fix Subscribed fields --- types/views.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/views.go b/types/views.go index 8fbc206..720f120 100644 --- a/types/views.go +++ b/types/views.go @@ -14,7 +14,7 @@ type PersonMentionView struct { Recipient PersonSafe `json:"recipient,omitempty" url:"recipient,omitempty"` Counts CommentAggregates `json:"counts,omitempty" url:"counts,omitempty"` CreatorBannedFromCommunity bool `json:"creator_banned_from_community,omitempty" url:"creator_banned_from_community,omitempty"` - Subscribed SubscribedType `json:"subscribed,omitempty" url:"subscribed,omitempty"` + Subscribed bool `json:"subscribed,omitempty" url:"subscribed,omitempty"` Saved bool `json:"saved,omitempty" url:"saved,omitempty"` CreatorBlocked bool `json:"creator_blocked,omitempty" url:"creator_blocked,omitempty"` MyVote Optional[int] `json:"my_vote,omitempty" url:"my_vote,omitempty"` @@ -73,7 +73,7 @@ type CommentView struct { Community CommunitySafe `json:"community,omitempty" url:"community,omitempty"` Counts CommentAggregates `json:"counts,omitempty" url:"counts,omitempty"` CreatorBannedFromCommunity bool `json:"creator_banned_from_community,omitempty" url:"creator_banned_from_community,omitempty"` - Subscribed SubscribedType `json:"subscribed,omitempty" url:"subscribed,omitempty"` + Subscribed bool `json:"subscribed,omitempty" url:"subscribed,omitempty"` Saved bool `json:"saved,omitempty" url:"saved,omitempty"` CreatorBlocked bool `json:"creator_blocked,omitempty" url:"creator_blocked,omitempty"` MyVote Optional[int] `json:"my_vote,omitempty" url:"my_vote,omitempty"` @@ -210,7 +210,7 @@ type PersonBlockView struct { type CommunityView struct { CommunitySafe CommunitySafe `json:"community_safe,omitempty" url:"community_safe,omitempty"` - Subscribed SubscribedType `json:"subscribed,omitempty" url:"subscribed,omitempty"` + Subscribed bool `json:"subscribed,omitempty" url:"subscribed,omitempty"` Blocked bool `json:"blocked,omitempty" url:"blocked,omitempty"` Counts CommunityAggregates `json:"counts,omitempty" url:"counts,omitempty"` } @@ -247,7 +247,7 @@ type CommentReplyView struct { Recipient PersonSafe `json:"recipient,omitempty" url:"recipient,omitempty"` Counts CommentAggregates `json:"counts,omitempty" url:"counts,omitempty"` CreatorBannedFromCommunity bool `json:"creator_banned_from_community,omitempty" url:"creator_banned_from_community,omitempty"` - Subscribed SubscribedType `json:"subscribed,omitempty" url:"subscribed,omitempty"` + Subscribed bool `json:"subscribed,omitempty" url:"subscribed,omitempty"` Saved bool `json:"saved,omitempty" url:"saved,omitempty"` CreatorBlocked bool `json:"creator_blocked,omitempty" url:"creator_blocked,omitempty"` MyVote Optional[int] `json:"my_vote,omitempty" url:"my_vote,omitempty"`