Github integration (#6414)
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { Unfurl, UnfurlType } from "@shared/types";
|
||||
import { UnfurlResponse, UnfurlType } from "@shared/types";
|
||||
import { Document, User } from "@server/models";
|
||||
import { presentLastOnlineInfoFor, presentLastViewedInfoFor } from "./common";
|
||||
|
||||
async function presentMention(
|
||||
user: User,
|
||||
document: Document
|
||||
): Promise<Unfurl<UnfurlType.Mention>> {
|
||||
): Promise<UnfurlResponse<UnfurlType.Mention>> {
|
||||
const lastOnlineInfo = presentLastOnlineInfoFor(user);
|
||||
const lastViewedInfo = await presentLastViewedInfoFor(user, document);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user