hotfix: temporarily remove private message reports
This commit is contained in:
1 parent
ee91f0496f
commit
948d912659
1 file changed
+1
-5
@@ -33,22 +33,18 @@ export async function load({ url }) {
|
|||||||
unresolved_only: type == 'unread',
|
unresolved_only: type == 'unread',
|
||||||
}
|
}
|
||||||
|
|
||||||
const [posts, comments, messages] = await Promise.all([
|
const [posts, comments] = await Promise.all([
|
||||||
client.listPostReports({
|
client.listPostReports({
|
||||||
...params,
|
...params,
|
||||||
}),
|
}),
|
||||||
client.listCommentReports({
|
client.listCommentReports({
|
||||||
...params,
|
...params,
|
||||||
}),
|
}),
|
||||||
client.listPrivateMessageReports({
|
|
||||||
...params,
|
|
||||||
}),
|
|
||||||
])
|
])
|
||||||
|
|
||||||
const everything = [
|
const everything = [
|
||||||
...posts.post_reports,
|
...posts.post_reports,
|
||||||
...comments.comment_reports,
|
...comments.comment_reports,
|
||||||
...messages.private_message_reports,
|
|
||||||
].sort(
|
].sort(
|
||||||
(a, b) => Date.parse(getItemPublished(b)) - Date.parse(getItemPublished(a))
|
(a, b) => Date.parse(getItemPublished(b)) - Date.parse(getItemPublished(a))
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user