MCPcopy Create free account
hub / github.com/dailydotdev/apps / getPostPath

Function getPostPath

packages/shared/src/lib/links.ts:41–44  ·  view source on GitHub ↗
(post: {
  id: string;
  slug?: string | null;
})

Source from the content-addressed store, hash-verified

39 `${process.env.NEXT_PUBLIC_WEBAPP_URL}tags/${encodeURIComponent(tag)}`;
40
41export const getPostPath = (post: {
42 id: string;
43 slug?: string | null;
44}): string => `${webappUrl}posts/${post.slug || post.id}`;
45
46export function isValidHttpUrl(link: string): boolean {
47 try {

Callers 15

GistCardFunction · 0.90
onKeyDownFunction · 0.90
RepostListItemFunction · 0.90
SquadPostListItemFunction · 0.90
BookmarkRowFunction · 0.90
CollectionList.tsxFile · 0.90
FreeformList.tsxFile · 0.90
ShareList.tsxFile · 0.90
CardOverlayFunction · 0.90
ActionButtonsV1Function · 0.90
ActionButtonsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected