fix: presentUnfurl
This commit is contained in:
14
server/presenters/unfurls/unfurl.ts
Normal file
14
server/presenters/unfurls/unfurl.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Unfurl } from "@shared/types";
|
||||
|
||||
function presentUnfurl(data: any): Unfurl {
|
||||
return {
|
||||
url: data.url,
|
||||
type: data.type,
|
||||
title: data.title,
|
||||
description: data.description,
|
||||
thumbnailUrl: data.thumbnail_url,
|
||||
meta: data.meta,
|
||||
};
|
||||
}
|
||||
|
||||
export default presentUnfurl;
|
||||
Reference in New Issue
Block a user