mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Register opengraph struct with gob for plugins (#9992)
This commit is contained in:
committed by
Christopher Speller
parent
fb12a739e5
commit
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
|
||||
|
||||
Reference in New Issue
Block a user