From eb027c0d3bcd473db17ef6f9c96545b9406b3636 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 5 Dec 2017 17:34:10 -0600 Subject: make slack attachments gobable (#7948) --- plugin/rpcplugin/api.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin/rpcplugin/api.go') diff --git a/plugin/rpcplugin/api.go b/plugin/rpcplugin/api.go index fb3517ae2..76c6e3039 100644 --- a/plugin/rpcplugin/api.go +++ b/plugin/rpcplugin/api.go @@ -4,6 +4,7 @@ package rpcplugin import ( + "encoding/gob" "encoding/json" "io" "net/http" @@ -582,3 +583,7 @@ func ConnectAPI(conn io.ReadWriteCloser, muxer *Muxer) *RemoteAPI { return remoteApi } + +func init() { + gob.Register([]*model.SlackAttachment{}) +} -- cgit v1.2.3-1-g7c22