#4257 Added functionality to create previews for post links using open graph data from those links. (#4890)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
fefe4b70d9
Коммит
3aaf71fdea
@@ -1767,6 +1767,16 @@ export default class Client {
|
||||
end(this.handleResponse.bind(this, 'getFileInfosForPost', success, error));
|
||||
}
|
||||
|
||||
getOpenGraphMetadata(url, success, error) {
|
||||
request.
|
||||
post(`${this.getBaseRoute()}/get_opengraph_metadata`).
|
||||
set(this.defaultHeaders).
|
||||
type('application/json').
|
||||
accept('application/json').
|
||||
send({url}).
|
||||
end(this.handleResponse.bind(this, 'getOpenGraphMetadata', success, error));
|
||||
}
|
||||
|
||||
// Routes for Files
|
||||
|
||||
uploadFile(file, filename, channelId, clientId, success, error) {
|
||||
|
||||
Ссылка в новой задаче
Block a user