Finish MessageService

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-17 21:13:33 -04:00
parent 1908dedd27
commit ac2fe30647
4 changed files with 371 additions and 2 deletions
+1 -2
View File
@@ -106,7 +106,6 @@ func (t *things) UnmarshalJSON(b []byte) error {
if err := json.Unmarshal(thing.Data, v); err == nil {
t.Posts = append(t.Posts, v)
}
case kindMessage:
case kindSubreddit:
v := new(Subreddit)
if err := json.Unmarshal(thing.Data, v); err == nil {
@@ -389,7 +388,7 @@ type Posts struct {
Before string `json:"before"`
}
// ModActions is a list of moderator action.
// ModActions is a list of moderator actions.
type ModActions struct {
ModActions []*ModAction `json:"moderator_actions"`
After string `json:"after"`