diff --git a/server/plugin.go b/server/plugin.go index 3c75e543a..9b4fc867e 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -91,6 +91,7 @@ func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Req errorMessage := "Failed to create post" p.postHTTPDebugMessage(errorMessage) http.Error(w, errorMessage, http.StatusInternalServerError) + return } user, appErr := p.API.GetUserByUsername(config.UserName)