MCPcopy
hub / github.com/usememos/memos / getAttachmentThumbnailUrl

Function getAttachmentThumbnailUrl

web/src/utils/attachment.ts:11–13  ·  view source on GitHub ↗
(attachment: Attachment)

Source from the content-addressed store, hash-verified

9};
10
11export const getAttachmentThumbnailUrl = (attachment: Attachment) => {
12 return `${window.location.origin}/file/${attachment.name}/${attachment.filename}?thumbnail=true`;
13};
14
15export const getAttachmentMotionClipUrl = (attachment: Attachment) => {
16 return `${window.location.origin}/file/${attachment.name}/${attachment.filename}?motion=true`;

Callers 7

AttachmentIconFunction · 0.90
AttachmentCardFunction · 0.90
attachmentGroupToItemFunction · 0.90
AttachmentThumbFunction · 0.90
buildAppleMotionItemFunction · 0.90
buildAndroidMotionItemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected