@social-mail/social-mail-web-server 1.8.380 → 1.8.382

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.8.380",
3
+ "version": "1.8.382",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -12,7 +12,7 @@ import MailboxContactEmail from "./MailboxContactEmail.js";
12
12
  import type ChannelEmail from "./ChannelEmail.js";
13
13
  import { User } from "./User.js";
14
14
  import type SubscriberActivity from "./SubscriberActivity.js";
15
- import { IgnoreJsonProperty, ReadOnlyJsonProperty } from "@entity-access/server-pages/dist/services/ModelService.js";
15
+ import { IgnoreJsonProperty, JsonProperty, ReadOnlyJsonProperty } from "@entity-access/server-pages/dist/services/ModelService.js";
16
16
  import type EmailEngagement from "./EmailEngagement.js";
17
17
  import Sql from "@entity-access/entity-access/dist/sql/Sql.js";
18
18
  import { apiPath } from "../../../common/globalEnv.js";
@@ -262,6 +262,9 @@ export class Email {
262
262
  @ReadOnlyJsonProperty
263
263
  postID: string;
264
264
 
265
+ @JsonProperty()
266
+ public sanitizedHtml: string;
267
+
265
268
  public tempID: any;
266
269
 
267
270
  public mimeFile: EmailLog;
@@ -352,20 +352,7 @@ export default class EmailEvents extends AuthenticatedEvents<Email> {
352
352
  if (entity.htmlBody) {
353
353
  if (entity.status === "published") {
354
354
  entity.htmlBody = null;
355
- } else {
356
- const htmlService = ServiceProvider.resolve(this, HtmlSanitizer);
357
- const encryptionService = ServiceProvider.resolve(this, EncryptionService);
358
- const emailID = entity.emailID.toString();
359
- const ei = encryptionService.general.encrypt(emailID);
360
- const result = htmlService.sanitizeExternalResources({
361
- html: entity.htmlBody,
362
- text: entity.textBody,
363
- prefix: `/api/emails/d/${ei}/${emailID}/`
364
- });
365
- entity.htmlBody = result.html;
366
- entity.textBody = result.text;
367
355
  }
368
-
369
356
  // const blog = entity.status === "published"
370
357
  // ? `@` + entity.senderName.split("@")[0]
371
358
  // : "";
@@ -17,7 +17,7 @@ export default async function seedUI(config: DBConfig) {
17
17
  await config.saveVersion(UIPackageConfig, {
18
18
  package: "@social-mail/social-mail-client",
19
19
  view: "dist/web/AppIndex",
20
- version: "1.9.75"
20
+ version: "1.9.76"
21
21
  });
22
22
 
23
23
  await config.saveVersion(WebComponentsPackageConfig, {