From d4a630902d8d250b67fcd0ce2b49240786b40368 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 4 Apr 2020 08:46:54 +0900 Subject: refactor: Use === --- src/remote/activitypub/renderer/note.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/remote/activitypub/renderer/note.ts') diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts index f9912b0ddc..5b00f82958 100644 --- a/src/remote/activitypub/renderer/note.ts +++ b/src/remote/activitypub/renderer/note.ts @@ -63,13 +63,13 @@ export default async function renderNote(note: Note, dive = true, isTalk = false let to: string[] = []; let cc: string[] = []; - if (note.visibility == 'public') { + if (note.visibility === 'public') { to = ['https://www.w3.org/ns/activitystreams#Public']; cc = [`${attributedTo}/followers`].concat(mentions); - } else if (note.visibility == 'home') { + } else if (note.visibility === 'home') { to = [`${attributedTo}/followers`]; cc = ['https://www.w3.org/ns/activitystreams#Public'].concat(mentions); - } else if (note.visibility == 'followers') { + } else if (note.visibility === 'followers') { to = [`${attributedTo}/followers`]; cc = mentions; } else { -- cgit v1.2.3-freya