diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/post.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/api/post.go b/api/post.go index a102cdf4d..6c1d4bbd1 100644 --- a/api/post.go +++ b/api/post.go @@ -642,9 +642,9 @@ func sendNotificationsAndForget(c *Context, post *model.Post, team *model.Team, msg.ServerId = utils.CfgDiagnosticId if channel.Type == model.CHANNEL_DIRECT { - msg.Message = channelName + " sent you a direct message" + msg.Message = senderName + " sent you a direct message" } else { - msg.Message = profileMap[id].FirstName + " mentioned you in " + channelName + msg.Message = senderName + " mentioned you in " + channelName } httpClient := http.Client{} @@ -1062,5 +1062,7 @@ func searchPosts(c *Context, w http.ResponseWriter, r *http.Request) { } } + w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate") + w.Header().Set("Expires", "0") w.Write([]byte(posts.ToJson())) } |