Register opengraph struct with gob for plugins (#9992)

Этот коммит содержится в:
Joram Wilander
2018-12-12 13:09:40 -05:00
коммит произвёл Christopher Speller
родитель fb12a739e5
Коммит 6ced89255b

Просмотреть файл

@@ -18,7 +18,8 @@ import (
"os"
"reflect"
"github.com/hashicorp/go-plugin"
"github.com/dyatlov/go-opengraph/opengraph"
plugin "github.com/hashicorp/go-plugin"
"github.com/mattermost/mattermost-server/mlog"
"github.com/mattermost/mattermost-server/model"
)
@@ -95,6 +96,7 @@ func init() {
gob.Register(map[string]interface{}{})
gob.Register(&model.AppError{})
gob.Register(&ErrorString{})
gob.Register(&opengraph.OpenGraph{})
}
// These enforce compile time checks to make sure types implement the interface