Skip to content

Commit

Permalink
TL APIのexcludeNsfwでCW付きも除くように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Aug 20, 2019
1 parent 2572584 commit 54075c5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/server/api/endpoints/notes/global-timeline.ts
Expand Up @@ -149,6 +149,7 @@ export default define(meta, async (ps, user) => {
query['_files.metadata.isSensitive'] = {
$ne: true
};
query['cw'] = null;
}

if (ps.excludeSfw) {
Expand Down
1 change: 1 addition & 0 deletions src/server/api/endpoints/notes/hybrid-timeline.ts
Expand Up @@ -292,6 +292,7 @@ export default define(meta, async (ps, user) => {
query['_files.metadata.isSensitive'] = {
$ne: true
};
query['cw'] = null;
}

if (ps.excludeSfw) {
Expand Down
1 change: 1 addition & 0 deletions src/server/api/endpoints/notes/local-timeline.ts
Expand Up @@ -227,6 +227,7 @@ export default define(meta, async (ps, user) => {
query['_files.metadata.isSensitive'] = {
$ne: true
};
query['cw'] = null;
}

if (ps.excludeSfw) {
Expand Down
1 change: 1 addition & 0 deletions src/server/api/endpoints/notes/timeline.ts
Expand Up @@ -281,6 +281,7 @@ export default define(meta, async (ps, user) => {
query['_files.metadata.isSensitive'] = {
$ne: true
};
query['cw'] = null;
}

if (ps.excludeSfw) {
Expand Down
1 change: 1 addition & 0 deletions src/server/api/endpoints/notes/user-list-timeline.ts
Expand Up @@ -304,6 +304,7 @@ export default define(meta, async (ps, user) => {
query['_files.metadata.isSensitive'] = {
$ne: true
};
query['cw'] = null;
}

if (ps.excludeSfw) {
Expand Down
1 change: 1 addition & 0 deletions src/server/api/endpoints/users/notes.ts
Expand Up @@ -243,6 +243,7 @@ export default define(meta, async (ps, me) => {
query['_files.metadata.isSensitive'] = {
$ne: true
};
query['cw'] = null;
}
}
//#endregion
Expand Down

0 comments on commit 54075c5

Please sign in to comment.