更新 'src/synapse/dataProvider.js'

This commit is contained in:
2022-07-09 10:23:28 +08:00
parent 61e4444727
commit 4772083040

View File

@@ -159,13 +159,16 @@ const resourceMap = {
user_p3url: { user_p3url: {
path: "/_synapse/admin/v1/url_preview", map: jr => ({
map: c => ({ id: jr,
...c, }),
id: c.user_id reference: id => ({
endpoint: `/_synapse/admin/v1/url_preview/${id}/`,
}), }),
data: "url_preview", data: "url_preview",
total: json => {
return json.total;
},
}, },
users_media: { users_media: {