summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/notes
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-06 23:23:54 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-06 23:23:54 +0900
commitf7e9725e59dd241b11fda729cc5c96a64d7e2545 (patch)
treeca09dd961685d789efa53dad8b6eba240b643eac /src/server/api/endpoints/notes
parentMerge branch 'develop' (diff)
parent12.74.0 (diff)
downloadmisskey-f7e9725e59dd241b11fda729cc5c96a64d7e2545.tar.gz
misskey-f7e9725e59dd241b11fda729cc5c96a64d7e2545.tar.bz2
misskey-f7e9725e59dd241b11fda729cc5c96a64d7e2545.zip
Merge branch 'develop'
Diffstat (limited to 'src/server/api/endpoints/notes')
-rw-r--r--src/server/api/endpoints/notes/polls/recommendation.ts10
-rw-r--r--src/server/api/endpoints/notes/state.ts15
2 files changed, 25 insertions, 0 deletions
diff --git a/src/server/api/endpoints/notes/polls/recommendation.ts b/src/server/api/endpoints/notes/polls/recommendation.ts
index a915c95a3f..93c9ff08ca 100644
--- a/src/server/api/endpoints/notes/polls/recommendation.ts
+++ b/src/server/api/endpoints/notes/polls/recommendation.ts
@@ -23,6 +23,16 @@ export const meta = {
validator: $.optional.num.min(0),
default: 0
}
+ },
+
+ res: {
+ type: 'array' as const,
+ optional: false as const, nullable: false as const,
+ items: {
+ type: 'object' as const,
+ optional: false as const, nullable: false as const,
+ ref: 'Note'
+ }
}
};
diff --git a/src/server/api/endpoints/notes/state.ts b/src/server/api/endpoints/notes/state.ts
index b41b56162c..b8b17820ee 100644
--- a/src/server/api/endpoints/notes/state.ts
+++ b/src/server/api/endpoints/notes/state.ts
@@ -21,6 +21,21 @@ export const meta = {
'en-US': 'Target note ID.'
}
}
+ },
+
+ res: {
+ type: 'object' as const,
+ optional: false as const, nullable: false as const,
+ properties: {
+ isFavorited: {
+ type: 'boolean' as const,
+ optional: false as const, nullable: false as const
+ },
+ isWatching: {
+ type: 'boolean' as const,
+ optional: false as const, nullable: false as const
+ }
+ }
}
};