Return POST_EMBED_LINK for links that are not images nor og (#11723)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
5754ffc320
Коммит
a9ed8fab28
@@ -176,7 +176,10 @@ func (a *App) getEmbedForPost(post *model.Post, firstLink string, isNewPost bool
|
||||
}, nil
|
||||
}
|
||||
|
||||
return nil, nil
|
||||
return &model.PostEmbed{
|
||||
Type: model.POST_EMBED_LINK,
|
||||
URL: firstLink,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (a *App) getImagesForPost(post *model.Post, imageURLs []string, isNewPost bool) map[string]*model.PostImage {
|
||||
|
||||
Ссылка в новой задаче
Block a user