Refactor (6)
This commit is contained in:
2
index.ts
2
index.ts
@@ -74,7 +74,7 @@ async function rephrase(text: string) {
|
||||
|
||||
const formatNote = (n: Note) => {
|
||||
if (n.userId === me.id) {
|
||||
return JSON.stringify({ text: n.text });
|
||||
return JSON.stringify({ name: "あるびのちゃん", text: n.text });
|
||||
}
|
||||
return JSON.stringify({
|
||||
name: n.user.name ?? n.user.username,
|
||||
|
||||
Reference in New Issue
Block a user