Register opengraph struct with gob for plugins (#9992)
Этот коммит содержится в:
коммит произвёл
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
|
||||
|
||||
Ссылка в новой задаче
Block a user