this repo has no description

remove empty strings from viewer state

+2 -14
api/server/actorgetprofile.go
··· 45 45 Pronouns: resp.Profile.Pronouns, 46 46 CreatedAt: resp.Profile.CreatedAt.AsTime().Format(time.RFC3339Nano), 47 47 IndexedAt: resp.Profile.IndexedAt.AsTime().Format(time.RFC3339Nano), 48 - Viewer: &vylet.ActorDefs_ViewerState{ 49 - BlockedBy: new(bool), 50 - Blocking: new(string), 51 - FollowedBy: new(string), 52 - Following: new(string), 53 - Muted: new(bool), 54 - }, 48 + Viewer: &vylet.ActorDefs_ViewerState{}, 55 49 }, nil 56 50 } 57 51 ··· 82 76 Pronouns: resp.Profile.Pronouns, 83 77 CreatedAt: resp.Profile.CreatedAt.AsTime().Format(time.RFC3339Nano), 84 78 IndexedAt: resp.Profile.IndexedAt.AsTime().Format(time.RFC3339Nano), 85 - Viewer: &vylet.ActorDefs_ViewerState{ 86 - BlockedBy: new(bool), 87 - Blocking: new(string), 88 - FollowedBy: new(string), 89 - Following: new(string), 90 - Muted: new(bool), 91 - }, 79 + Viewer: &vylet.ActorDefs_ViewerState{}, 92 80 }, nil 93 81 } 94 82
+2 -14
api/server/actorgetprofiles.go
··· 47 47 Pronouns: profile.Pronouns, 48 48 CreatedAt: profile.CreatedAt.AsTime().Format(time.RFC3339Nano), 49 49 IndexedAt: profile.IndexedAt.AsTime().Format(time.RFC3339Nano), 50 - Viewer: &vylet.ActorDefs_ViewerState{ 51 - BlockedBy: new(bool), 52 - Blocking: new(string), 53 - FollowedBy: new(string), 54 - Following: new(string), 55 - Muted: new(bool), 56 - }, 50 + Viewer: &vylet.ActorDefs_ViewerState{}, 57 51 } 58 52 }) 59 53 } ··· 96 90 Pronouns: profile.Pronouns, 97 91 CreatedAt: profile.CreatedAt.AsTime().Format(time.RFC3339Nano), 98 92 IndexedAt: profile.IndexedAt.AsTime().Format(time.RFC3339Nano), 99 - Viewer: &vylet.ActorDefs_ViewerState{ 100 - BlockedBy: new(bool), 101 - Blocking: new(string), 102 - FollowedBy: new(string), 103 - Following: new(string), 104 - Muted: new(bool), 105 - }, 93 + Viewer: &vylet.ActorDefs_ViewerState{}, 106 94 } 107 95 }) 108 96 }
+3 -5
api/server/feedgetposts.go
··· 164 164 LikeCount: counts.Likes, 165 165 ReplyCount: counts.Replies, 166 166 Uri: post.Uri, 167 - // Viewer: &vylet.FeedDefs_ViewerState{ 168 - // Like: new(string), 169 - // }, 170 - CreatedAt: post.CreatedAt.AsTime().Format(time.RFC3339Nano), 171 - IndexedAt: post.IndexedAt.AsTime().Format(time.RFC3339Nano), 167 + Viewer: &vylet.FeedDefs_ViewerState{}, 168 + CreatedAt: post.CreatedAt.AsTime().Format(time.RFC3339Nano), 169 + IndexedAt: post.IndexedAt.AsTime().Format(time.RFC3339Nano), 172 170 } 173 171 174 172 media := vylet.FeedDefs_PostView_Media{