diff options
author | Chris <ccbrown112@gmail.com> | 2017-12-05 17:34:10 -0600 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-12-05 15:34:10 -0800 |
commit | eb027c0d3bcd473db17ef6f9c96545b9406b3636 (patch) | |
tree | 0bd78cfd9df2beba160e64e2ef420c2b8410042d /plugin/rpcplugin/api.go | |
parent | 7cefef6d21fa76de0683d2fe9ff56a6e28816628 (diff) | |
download | chat-eb027c0d3bcd473db17ef6f9c96545b9406b3636.tar.gz chat-eb027c0d3bcd473db17ef6f9c96545b9406b3636.tar.bz2 chat-eb027c0d3bcd473db17ef6f9c96545b9406b3636.zip |
make slack attachments gobable (#7948)
Diffstat (limited to 'plugin/rpcplugin/api.go')
-rw-r--r-- | plugin/rpcplugin/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
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{}) +} |