diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index 1b5caed..2ac5189 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -159,13 +159,16 @@ const resourceMap = { user_p3url: { - path: "/_synapse/admin/v1/url_preview", - map: c => ({ - ...c, - id: c.user_id + map: jr => ({ + id: jr, + }), + reference: id => ({ + endpoint: `/_synapse/admin/v1/url_preview/${id}/`, }), data: "url_preview", - + total: json => { + return json.total; + }, }, users_media: {