diff options
author | =Corey Hulen <corey@hulen.com> | 2015-07-14 15:12:04 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-07-14 15:12:04 -0800 |
commit | 246d12aaf23fa3a2c23225b33a333effff76253b (patch) | |
tree | c2a19c301b34391427e60e0e5cfcbf9879a44ee7 /api/post.go | |
parent | a45dea6b06bb62b3fb953d598854c371f417082d (diff) | |
download | chat-246d12aaf23fa3a2c23225b33a333effff76253b.tar.gz chat-246d12aaf23fa3a2c23225b33a333effff76253b.tar.bz2 chat-246d12aaf23fa3a2c23225b33a333effff76253b.zip |
fixes mm-1348 removing dependency on redis
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/post.go b/api/post.go index 02f997166..aa9b13292 100644 --- a/api/post.go +++ b/api/post.go @@ -11,10 +11,10 @@ import ( "github.com/mattermost/platform/store" "github.com/mattermost/platform/utils" "net/http" + "path/filepath" "strconv" "strings" "time" - "path/filepath" ) func InitPost(r *mux.Router) { @@ -455,7 +455,7 @@ func fireAndForgetNotifications(post *model.Post, teamId, teamUrl string) { message.Add("mentions", model.ArrayToJson(mentionedUsers)) } - store.PublishAndForget(message) + PublishAndForget(message) }() } @@ -521,7 +521,7 @@ func updatePost(c *Context, w http.ResponseWriter, r *http.Request) { message.Add("channel_id", rpost.ChannelId) message.Add("message", rpost.Message) - store.PublishAndForget(message) + PublishAndForget(message) w.Write([]byte(rpost.ToJson())) } @@ -670,7 +670,7 @@ func deletePost(c *Context, w http.ResponseWriter, r *http.Request) { message.Add("post_id", post.Id) message.Add("channel_id", post.ChannelId) - store.PublishAndForget(message) + PublishAndForget(message) result := make(map[string]string) result["id"] = postId |