mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
Revert "refactor: nyaize on the frontend"
This reverts commit aff90b3ef225e5d4453469b36b7bf3a8565c7a68.
This commit is contained in:
parent
35cacf704e
commit
ae9ba9b2c3
3 changed files with 3 additions and 7 deletions
|
@ -12,6 +12,7 @@ import {
|
||||||
Channels,
|
Channels,
|
||||||
} from "../index.js";
|
} from "../index.js";
|
||||||
import type { Packed } from "@/misc/schema.js";
|
import type { Packed } from "@/misc/schema.js";
|
||||||
|
import { nyaize } from "@/misc/nyaize.js";
|
||||||
import { awaitAll } from "@/prelude/await-all.js";
|
import { awaitAll } from "@/prelude/await-all.js";
|
||||||
import {
|
import {
|
||||||
convertLegacyReaction,
|
convertLegacyReaction,
|
||||||
|
@ -262,7 +263,7 @@ export const NoteRepository = db.getRepository(Note).extend({
|
||||||
: {}),
|
: {}),
|
||||||
});
|
});
|
||||||
|
|
||||||
/* if (packed.user.isCat && packed.text) {
|
if (packed.user.isCat && packed.text) {
|
||||||
const tokens = packed.text ? mfm.parse(packed.text) : [];
|
const tokens = packed.text ? mfm.parse(packed.text) : [];
|
||||||
mfm.inspect(tokens, (node) => {
|
mfm.inspect(tokens, (node) => {
|
||||||
if (node.type === "text") {
|
if (node.type === "text") {
|
||||||
|
@ -271,7 +272,7 @@ export const NoteRepository = db.getRepository(Note).extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
packed.text = mfm.toString(tokens);
|
packed.text = mfm.toString(tokens);
|
||||||
} */
|
}
|
||||||
|
|
||||||
return packed;
|
return packed;
|
||||||
},
|
},
|
||||||
|
|
|
@ -91,7 +91,6 @@ import { instance } from '@/instance';
|
||||||
import { $i, getAccounts, openAccountMenu as openAccountMenu_ } from '@/account';
|
import { $i, getAccounts, openAccountMenu as openAccountMenu_ } from '@/account';
|
||||||
import { uploadFile } from '@/scripts/upload';
|
import { uploadFile } from '@/scripts/upload';
|
||||||
import { deepClone } from '@/scripts/clone';
|
import { deepClone } from '@/scripts/clone';
|
||||||
import { nyaize } from '@/scripts/nyaize';
|
|
||||||
import XCheatSheet from '@/components/MkCheatSheetDialog.vue';
|
import XCheatSheet from '@/components/MkCheatSheetDialog.vue';
|
||||||
|
|
||||||
const modal = inject('modal');
|
const modal = inject('modal');
|
||||||
|
@ -583,10 +582,6 @@ async function post() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i?.isCat && (postData.text != null || postData.text!.length === 0)) {
|
|
||||||
postData.text = nyaize(`${postData.text}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
let token = undefined;
|
let token = undefined;
|
||||||
|
|
||||||
if (postAccount) {
|
if (postAccount) {
|
||||||
|
|
Loading…
Reference in a new issue