tangled
alpha
login
or
join now
hailey.at
/
vylet-go
1
fork
atom
this repo has no description
1
fork
atom
overview
issues
pulls
pipelines
remove empty strings from viewer state
hailey.at
3 months ago
cef5ae43
8e588085
+7
-33
3 changed files
expand all
collapse all
unified
split
api
server
actorgetprofile.go
actorgetprofiles.go
feedgetposts.go
+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
48
-
Viewer: &vylet.ActorDefs_ViewerState{
49
49
-
BlockedBy: new(bool),
50
50
-
Blocking: new(string),
51
51
-
FollowedBy: new(string),
52
52
-
Following: new(string),
53
53
-
Muted: new(bool),
54
54
-
},
48
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
85
-
Viewer: &vylet.ActorDefs_ViewerState{
86
86
-
BlockedBy: new(bool),
87
87
-
Blocking: new(string),
88
88
-
FollowedBy: new(string),
89
89
-
Following: new(string),
90
90
-
Muted: new(bool),
91
91
-
},
79
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
50
-
Viewer: &vylet.ActorDefs_ViewerState{
51
51
-
BlockedBy: new(bool),
52
52
-
Blocking: new(string),
53
53
-
FollowedBy: new(string),
54
54
-
Following: new(string),
55
55
-
Muted: new(bool),
56
56
-
},
50
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
99
-
Viewer: &vylet.ActorDefs_ViewerState{
100
100
-
BlockedBy: new(bool),
101
101
-
Blocking: new(string),
102
102
-
FollowedBy: new(string),
103
103
-
Following: new(string),
104
104
-
Muted: new(bool),
105
105
-
},
93
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
167
-
// Viewer: &vylet.FeedDefs_ViewerState{
168
168
-
// Like: new(string),
169
169
-
// },
170
170
-
CreatedAt: post.CreatedAt.AsTime().Format(time.RFC3339Nano),
171
171
-
IndexedAt: post.IndexedAt.AsTime().Format(time.RFC3339Nano),
167
167
+
Viewer: &vylet.FeedDefs_ViewerState{},
168
168
+
CreatedAt: post.CreatedAt.AsTime().Format(time.RFC3339Nano),
169
169
+
IndexedAt: post.IndexedAt.AsTime().Format(time.RFC3339Nano),
172
170
}
173
171
174
172
media := vylet.FeedDefs_PostView_Media{