Github integration (#6414)
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import { Unfurl } from "@shared/types";
|
||||
import { UnfurlResponse } from "@shared/types";
|
||||
|
||||
function presentUnfurl(data: any): Unfurl {
|
||||
function presentUnfurl(data: any): UnfurlResponse {
|
||||
return {
|
||||
url: data.url,
|
||||
type: data.type,
|
||||
title: data.title,
|
||||
createdAt: data.createdAt,
|
||||
description: data.description,
|
||||
thumbnailUrl: data.thumbnail_url,
|
||||
author: data.author,
|
||||
meta: data.meta,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user