diff options
| author | Lhc_fl <lhcfl@outlook.com> | 2025-03-03 23:46:31 +0800 |
|---|---|---|
| committer | Lhc_fl <lhcfl@outlook.com> | 2025-03-03 23:46:31 +0800 |
| commit | 8d487be4be368f2cf261746837862b945af990b8 (patch) | |
| tree | 682e24b7f39489a3abca9de9a91cd52b28fe28dc | |
| parent | fix: always clone the note before hideNote (diff) | |
| download | sharkey-8d487be4be368f2cf261746837862b945af990b8.tar.gz sharkey-8d487be4be368f2cf261746837862b945af990b8.tar.bz2 sharkey-8d487be4be368f2cf261746837862b945af990b8.zip | |
small change to comment
| -rw-r--r-- | packages/backend/src/server/api/stream/channel.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/backend/src/server/api/stream/channel.ts b/packages/backend/src/server/api/stream/channel.ts index b4a722e763..5189c86de8 100644 --- a/packages/backend/src/server/api/stream/channel.ts +++ b/packages/backend/src/server/api/stream/channel.ts @@ -83,10 +83,9 @@ export default abstract class Channel { } /** - * Please make sure you did `assignMyReaction` before this function. - * See Dakker's comment regarding the same object will leading to wrong value. - * @param note The note to **CHANGE** - * @see assignMyReaction + * This function modifies {@link note}, please make sure it has been shallow cloned. + * See Dakkar's comment of {@link assignMyReaction} for more + * @param note The note to change */ protected async hideNote(note: Packed<'Note'>): Promise<void> { if (note.renote) { |