This reverts commit 680b00047f.
Reverts the recent opengraph update to fix some issues with our plugins
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2cd83d2f8d
Коммит
7793aebfbb
@@ -19,7 +19,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/dyatlov/go-opengraph/opengraph"
|
||||
ogimage "github.com/dyatlov/go-opengraph/opengraph/types/image"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -1158,7 +1157,7 @@ func TestGetImagesForPost(t *testing.T) {
|
||||
Type: model.PostEmbedOpengraph,
|
||||
URL: ogURL,
|
||||
Data: &opengraph.OpenGraph{
|
||||
Images: []*ogimage.Image{
|
||||
Images: []*opengraph.Image{
|
||||
{
|
||||
URL: imageURL,
|
||||
},
|
||||
@@ -1212,7 +1211,7 @@ func TestGetImagesForPost(t *testing.T) {
|
||||
Type: model.PostEmbedOpengraph,
|
||||
URL: ogURL,
|
||||
Data: &opengraph.OpenGraph{
|
||||
Images: []*ogimage.Image{
|
||||
Images: []*opengraph.Image{
|
||||
{
|
||||
SecureURL: imageURL,
|
||||
},
|
||||
@@ -1265,7 +1264,7 @@ func TestGetImagesForPost(t *testing.T) {
|
||||
Type: model.PostEmbedOpengraph,
|
||||
URL: ogURL,
|
||||
Data: &opengraph.OpenGraph{
|
||||
Images: []*ogimage.Image{
|
||||
Images: []*opengraph.Image{
|
||||
{
|
||||
URL: server.URL + "/image.png",
|
||||
SecureURL: imageURL,
|
||||
@@ -2712,7 +2711,7 @@ func TestSanitizePostMetadataForUserAndChannel(t *testing.T) {
|
||||
Type: model.PostEmbedOpengraph,
|
||||
URL: "ogURL",
|
||||
Data: &opengraph.OpenGraph{
|
||||
Images: []*ogimage.Image{
|
||||
Images: []*opengraph.Image{
|
||||
{
|
||||
URL: "imageURL",
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user