Skip to content

Function: toFederatedMentions() ​

ts
function toFederatedMentions(content, guidFor): string;

Defined in: mentions.ts:43

Rewrite <@user:N> and <@role:N> for sending to another instance. Unknown ids become plain text.

Parameters ​

ParameterType
contentstring
guidFor(type, id) => string | null | undefined

Returns ​

string

Released under the GNU Affero General Public License v3.0.