diff --git a/packages/pds/src/api/app/bsky/feed/getPostThread.ts b/packages/pds/src/api/app/bsky/feed/getPostThread.ts index ab9e0bc0681..270c1044497 100644 --- a/packages/pds/src/api/app/bsky/feed/getPostThread.ts +++ b/packages/pds/src/api/app/bsky/feed/getPostThread.ts @@ -32,7 +32,7 @@ export default function (server: Server, ctx: AppContext) { auth.credentials.type === 'access' ? auth.credentials.did : null if (!requester) { - const res = await ctx.appviewAgent.api.app.bsky.feed.getPostThread( + const res = await ctx.appViewAgent.api.app.bsky.feed.getPostThread( params, authPassthru(req), ) diff --git a/packages/pds/src/mailer/moderation.ts b/packages/pds/src/mailer/moderation.ts index eaf7456eb3e..7ddd737169d 100644 --- a/packages/pds/src/mailer/moderation.ts +++ b/packages/pds/src/mailer/moderation.ts @@ -1,5 +1,6 @@ import { Transporter } from 'nodemailer' import Mail from 'nodemailer/lib/mailer' +import { htmlToText } from 'nodemailer-html-to-text' import SMTPTransport from 'nodemailer/lib/smtp-transport' import { ServerConfig } from '../config' import { mailerLogger } from '../logger' @@ -14,14 +15,17 @@ export class ModerationMailer { ) { this.config = config this.transporter = transporter + this.transporter.use('compile', htmlToText()) } async send({ content }: { content: string }, mailOpts: Mail.Options) { - const res = await this.transporter.sendMail({ + const mail = { ...mailOpts, - text: content, + html: content, from: this.config.moderationEmail?.fromAddress, - }) + } + + const res = await this.transporter.sendMail(mail) if (!this.config.moderationEmail?.smtpUrl) { mailerLogger.debug(