From 4bf5ea09a431e25f194e5714d16079f56606037b Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 22 Nov 2023 04:52:49 +0100 Subject: [PATCH] Revert "[backend] Fix re2 imports" This reverts commit c60414f3478b553191bd1085b2a7bc98fd25e70c. --- .../backend/src/migration/1644010796173-convert-hard-mutes.ts | 2 +- packages/backend/src/misc/check-word-mute.ts | 2 +- packages/backend/src/server/api/endpoints/i/update.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/migration/1644010796173-convert-hard-mutes.ts b/packages/backend/src/migration/1644010796173-convert-hard-mutes.ts index 0ddd2bdf3..7b00238f1 100644 --- a/packages/backend/src/migration/1644010796173-convert-hard-mutes.ts +++ b/packages/backend/src/migration/1644010796173-convert-hard-mutes.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from "typeorm"; -import RE2 from "re2"; +import RE2 from "@iceshrimp/re2"; export class convertHardMutes1644010796173 implements MigrationInterface { name = "convertHardMutes1644010796173"; diff --git a/packages/backend/src/misc/check-word-mute.ts b/packages/backend/src/misc/check-word-mute.ts index 341b3b52f..dc89859f8 100644 --- a/packages/backend/src/misc/check-word-mute.ts +++ b/packages/backend/src/misc/check-word-mute.ts @@ -1,4 +1,4 @@ -import RE2 from "re2"; +import RE2 from "@iceshrimp/re2"; import type { Note } from "@/models/entities/note.js"; import type { User } from "@/models/entities/user.js"; diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index 84e1f0bb2..5e9570d9f 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -1,4 +1,4 @@ -import RE2 from "re2"; +import RE2 from "@iceshrimp/re2"; import * as mfm from "mfm-js"; import { publishMainStream, publishUserEvent } from "@/services/stream.js"; import acceptAllFollowRequests from "@/services/following/requests/accept-all.js";