mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
15 lines
291 B
TypeScript
15 lines
291 B
TypeScript
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;
|