summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-11-01 00:55:53 +0100
committerMar0xy <marie@kaifa.ch>2023-11-01 00:55:53 +0100
commitd49cc2992311a4d0d2aa5542b22c941ca0614dc8 (patch)
tree121ac9096260833bf3664614f9e10acf3f374580 /packages
parentchore: remove debug line, change example.yml (diff)
downloadsharkey-d49cc2992311a4d0d2aa5542b22c941ca0614dc8.tar.gz
sharkey-d49cc2992311a4d0d2aa5542b22c941ca0614dc8.tar.bz2
sharkey-d49cc2992311a4d0d2aa5542b22c941ca0614dc8.zip
chore: add attribution
Diffstat (limited to 'packages')
-rw-r--r--packages/backend/src/core/MfmService.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/core/MfmService.ts b/packages/backend/src/core/MfmService.ts
index 91690aec1b..67c5d58ef5 100644
--- a/packages/backend/src/core/MfmService.ts
+++ b/packages/backend/src/core/MfmService.ts
@@ -389,6 +389,8 @@ export class MfmService {
return `<p>${doc.body.innerHTML}</p>`;
}
+ // the toMastoHtml function was taken from Iceshrimp and written by zotan and modified by marie to work with the current MK version
+
@bindThis
public async toMastoHtml(nodes: mfm.MfmNode[] | null, mentionedRemoteUsers: IMentionedRemoteUsers = [], inline = false, quoteUri: string | null = null) {
if (nodes == null) {