MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / pushUserMention

Function pushUserMention

apps/web/services/push/index.ts:111–133  ·  view source on GitHub ↗
({
  userId,
  threadId,
  channelId,
  mentionType,
}: {
  userId: string;
  threadId: string;
  channelId: string;
  mentionType: string;
})

Source from the content-addressed store, hash-verified

109};
110
111export const pushUserMention = ({
112 userId,
113 threadId,
114 channelId,
115 mentionType,
116}: {
117 userId: string;
118 threadId: string;
119 channelId: string;
120 mentionType: string;
121}) => {
122 return request
123 .post(`${getPushUrlSSR()}/api/user`)
124 .send({
125 user_id: userId,
126 thread_id: threadId,
127 channel_id: channelId,
128 is_mention: true,
129 mention_type: mentionType,
130 token,
131 })
132 .then((e) => e.status);
133};
134
135export const pushCommunity = ({
136 communityId,

Callers 1

eventNewMentionsFunction · 0.90

Calls 3

getPushUrlSSRFunction · 0.90
sendMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected