summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api
diff options
context:
space:
mode:
authorLhc_fl <lhcfl@outlook.com>2025-03-03 23:46:31 +0800
committerLhc_fl <lhcfl@outlook.com>2025-03-03 23:46:31 +0800
commit8d487be4be368f2cf261746837862b945af990b8 (patch)
tree682e24b7f39489a3abca9de9a91cd52b28fe28dc /packages/backend/src/server/api
parentfix: always clone the note before hideNote (diff)
downloadsharkey-8d487be4be368f2cf261746837862b945af990b8.tar.gz
sharkey-8d487be4be368f2cf261746837862b945af990b8.tar.bz2
sharkey-8d487be4be368f2cf261746837862b945af990b8.zip
small change to comment
Diffstat (limited to 'packages/backend/src/server/api')
-rw-r--r--packages/backend/src/server/api/stream/channel.ts7
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) {