diff --git a/plugin.json b/plugin.json index 92e94ca..2b4eea1 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "id": "mattermost-gyazo", "name": "Gyazo", "description": "Format messages with gyazo links.", - "version": "0.1.0", + "version": "0.1.1", "backend": { "executable": "server/plugin.exe" }, diff --git a/server/plugin.go b/server/plugin.go index 6640558..fb1d03e 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -8,7 +8,6 @@ import ( "sync/atomic" "time" - "github.com/mattermost/mattermost-server/mlog" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/plugin" ) @@ -73,13 +72,11 @@ func (p *Plugin) FormatPost(post *model.Post, gyazo string) *model.Post { } post.Message = "[Gyazo](" + gyazo + ")\n" + url - mlog.Error(post.Message) return post } // MessageWillBePosted is invoked when a message is posted by a user before it is commited // to the database. func (p *Plugin) MessageWillBePosted(post *model.Post) (*model.Post, string) { - mlog.Error(post.Message) return p.FilterPost(post) }