Add excludeNsfw option

This commit is contained in:
syuilo
2018-09-25 21:09:38 +09:00
parent 5da18ba535
commit afdacf14b7
5 changed files with 29 additions and 0 deletions

View File

@ -187,6 +187,7 @@ export default Vue.extend({
(this as any).api('notes/local-timeline', {
fileType: image,
excludeNsfw: true,
limit: 6
}).then((notes: any[]) => {
const files = concat(notes.map((n: any): any[] => n.files));

View File

@ -111,6 +111,7 @@ export default Vue.extend({
(this as any).api('notes/local-timeline', {
fileType: image,
excludeNsfw: true,
limit: 6
}).then((notes: any[]) => {
const files = concat(notes.map((n: any): any[] => n.files));