japierdole

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-07-30 23:39:15 +02:00
parent af739b4db5
commit 48b714e52a
5 changed files with 13 additions and 7 deletions

View File

@ -4235,6 +4235,10 @@ class PlApiClient {
*/
getReports: async (params?: AdminGetReportsParams) => {
if (this.features.mastodonAdmin) {
if (params?.resolved === undefined && (this.features.version.software === GOTOSOCIAL || this.features.version.software === PLEROMA)) {
if (!params) params = {};
params.resolved = false;
}
return this.#paginatedGet('/api/v1/admin/reports', { params }, adminReportSchema);
} else {
return this.#paginatedPleromaReports({