mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
Improve featured api
This commit is contained in:
parent
95b157ac3e
commit
414cac49c3
@ -23,7 +23,7 @@ export const meta = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
||||||
const day = 1000 * 60 * 60 * 24;
|
const day = 1000 * 60 * 60 * 24 * 2;
|
||||||
|
|
||||||
const notes = await Note
|
const notes = await Note
|
||||||
.find({
|
.find({
|
||||||
@ -31,7 +31,8 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
|||||||
$gt: new Date(Date.now() - day)
|
$gt: new Date(Date.now() - day)
|
||||||
},
|
},
|
||||||
deletedAt: null,
|
deletedAt: null,
|
||||||
visibility: { $in: ['public', 'home'] }
|
visibility: { $in: ['public', 'home'] },
|
||||||
|
'_user.host': null
|
||||||
}, {
|
}, {
|
||||||
limit: ps.limit,
|
limit: ps.limit,
|
||||||
sort: {
|
sort: {
|
||||||
|
Loading…
Reference in New Issue
Block a user