From e4effd0c15a188eeec7a11f281e529afd6a54f80 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 13 Feb 2017 10:52:50 -0500 Subject: Implement some post endpoints for APIv4 (#5353) * Implement POST /posts endpoint for APIv4 * Implement GET /channels/{channel_id}/posts endpoint for APIv4 * Implement GET /posts/{post_id} endpoint for APIv4 * Implement GET /posts/{post_id}/thread endpoint for APIv4 * Skip team get if it's a DM channel in handlePostEvents --- api4/channel_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api4/channel_test.go') diff --git a/api4/channel_test.go b/api4/channel_test.go index d5bc1d971..91d055bff 100644 --- a/api4/channel_test.go +++ b/api4/channel_test.go @@ -331,8 +331,8 @@ func TestGetChannelMembersForUser(t *testing.T) { members, resp := Client.GetChannelMembersForUser(th.BasicUser.Id, th.BasicTeam.Id, "") CheckNoError(t, resp) - if len(*members) != 3 { - t.Fatal("should have 3 members on team") + if len(*members) != 4 { + t.Fatal("should have 4 members on team") } _, resp = Client.GetChannelMembersForUser("", th.BasicTeam.Id, "") -- cgit v1.2.3-1-g7c22