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