更新 'src/synapse/dataProvider.js'
This commit is contained in:
parent
d8df2fa2e8
commit
d6749b413a
@ -159,13 +159,16 @@ const resourceMap = {
|
|||||||
user_urlpreview: {
|
user_urlpreview: {
|
||||||
map: uu => ({
|
map: uu => ({
|
||||||
...uu,
|
...uu,
|
||||||
id: uu,
|
id: uu.media_id,
|
||||||
}),
|
}),
|
||||||
reference: id => ({
|
reference: id => ({
|
||||||
endpoint: `/_synapse/admin/v1/users/${id}/urlpreview`,
|
endpoint: `/_synapse/admin/v1/users/${id}/urlpreview`,
|
||||||
}),
|
}),
|
||||||
data: "urlpreview",
|
data: "urlpreview",
|
||||||
},
|
total: json => {
|
||||||
|
return json.total;
|
||||||
|
},
|
||||||
|
},
|
||||||
users_media: {
|
users_media: {
|
||||||
map: um => ({
|
map: um => ({
|
||||||
...um,
|
...um,
|
||||||
|
Loading…
Reference in New Issue
Block a user