From df57f5f908338089ec1bd652c73c5802dfeeaf71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Sat, 9 Jul 2022 10:12:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/synapse/dataProvider.?= =?UTF-8?q?js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/synapse/dataProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index 5fc13cf..4e011cc 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -165,9 +165,9 @@ const resourceMap = { id: um.media_id, }), reference: id => ({ - endpoint: `/_synapse/admin/v1/users/${id}/media`, + endpoint: `/_synapse/admin/v1/users/${id}/url_preview`, }), - data: "media", + data: "url_preview", total: json => { return json.total; },