Remove the code snippets which didn't work
This commit is contained in:
parent
52f521941c
commit
db273318b8
3 changed files with 0 additions and 21 deletions
|
@ -1,7 +1,6 @@
|
||||||
import Channel from "../channel.js";
|
import Channel from "../channel.js";
|
||||||
import { Notes } from "@/models/index.js";
|
import { Notes } from "@/models/index.js";
|
||||||
import { isUserRelated } from "@/misc/is-user-related.js";
|
import { isUserRelated } from "@/misc/is-user-related.js";
|
||||||
import { getWordHardMute } from "@/misc/check-word-mute.js";
|
|
||||||
import type { StreamMessages } from "../types.js";
|
import type { StreamMessages } from "../types.js";
|
||||||
import { IdentifiableError } from "@/misc/identifiable-error.js";
|
import { IdentifiableError } from "@/misc/identifiable-error.js";
|
||||||
|
|
||||||
|
@ -38,12 +37,6 @@ export default class extends Channel {
|
||||||
if (note.renote && !note.text && isUserRelated(note, this.renoteMuting))
|
if (note.renote && !note.text && isUserRelated(note, this.renoteMuting))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (
|
|
||||||
this.userProfile &&
|
|
||||||
(await getWordHardMute(note, this.user, this.userProfile.mutedWords))
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
|
|
||||||
this.connection.cacheNote(note);
|
this.connection.cacheNote(note);
|
||||||
|
|
||||||
this.send("note", note);
|
this.send("note", note);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import Channel from "../channel.js";
|
import Channel from "../channel.js";
|
||||||
import { Users } from "@/models/index.js";
|
import { Users } from "@/models/index.js";
|
||||||
import { isUserRelated } from "@/misc/is-user-related.js";
|
import { isUserRelated } from "@/misc/is-user-related.js";
|
||||||
import { getWordHardMute } from "@/misc/check-word-mute.js";
|
|
||||||
import type { User } from "@/models/entities/user.js";
|
import type { User } from "@/models/entities/user.js";
|
||||||
import type { StreamMessages } from "../types.js";
|
import type { StreamMessages } from "../types.js";
|
||||||
import type { Packed } from "@/misc/schema.js";
|
import type { Packed } from "@/misc/schema.js";
|
||||||
|
@ -40,12 +39,6 @@ export default class extends Channel {
|
||||||
if (note.renote && !note.text && isUserRelated(note, this.renoteMuting))
|
if (note.renote && !note.text && isUserRelated(note, this.renoteMuting))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (
|
|
||||||
this.userProfile &&
|
|
||||||
(await getWordHardMute(note, this.user, this.userProfile.mutedWords))
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
|
|
||||||
this.connection.cacheNote(note);
|
this.connection.cacheNote(note);
|
||||||
|
|
||||||
this.send("note", note);
|
this.send("note", note);
|
||||||
|
|
|
@ -2,7 +2,6 @@ import Channel from "../channel.js";
|
||||||
import { UserListJoinings, UserLists } from "@/models/index.js";
|
import { UserListJoinings, UserLists } from "@/models/index.js";
|
||||||
import type { User } from "@/models/entities/user.js";
|
import type { User } from "@/models/entities/user.js";
|
||||||
import { isUserRelated } from "@/misc/is-user-related.js";
|
import { isUserRelated } from "@/misc/is-user-related.js";
|
||||||
import { getWordHardMute } from "@/misc/check-word-mute.js";
|
|
||||||
import type { Packed } from "@/misc/schema.js";
|
import type { Packed } from "@/misc/schema.js";
|
||||||
|
|
||||||
export default class extends Channel {
|
export default class extends Channel {
|
||||||
|
@ -60,12 +59,6 @@ export default class extends Channel {
|
||||||
if (note.renote && !note.text && isUserRelated(note, this.renoteMuting))
|
if (note.renote && !note.text && isUserRelated(note, this.renoteMuting))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (
|
|
||||||
this.userProfile &&
|
|
||||||
(await getWordHardMute(note, this.user, this.userProfile.mutedWords))
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
|
|
||||||
this.send("note", note);
|
this.send("note", note);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue