更新 'src/synapse/dataProvider.js'
This commit is contained in:
@@ -102,8 +102,7 @@ const resourceMap = {
|
|||||||
path: "/_synapse/admin/v1/whois",
|
path: "/_synapse/admin/v1/whois",
|
||||||
map: c => ({
|
map: c => ({
|
||||||
...c,
|
...c,
|
||||||
id: c.user_id,
|
id: c.user_id
|
||||||
port: "13001"
|
|
||||||
}),
|
}),
|
||||||
data: "connections",
|
data: "connections",
|
||||||
},
|
},
|
||||||
@@ -160,17 +159,12 @@ const resourceMap = {
|
|||||||
|
|
||||||
user_p3url: {
|
user_p3url: {
|
||||||
|
|
||||||
map: um => ({
|
path: "/_synapse/admin/v1/url_preview",
|
||||||
...um,
|
map: c => ({
|
||||||
id: um.media_id,
|
...c,
|
||||||
}),
|
id: c.user_id
|
||||||
reference: id => ({
|
|
||||||
endpoint: `/_synapse/admin/v1/users/${id}/url_preview`,
|
|
||||||
}),
|
}),
|
||||||
data: "url_preview",
|
data: "url_preview",
|
||||||
total: json => {
|
|
||||||
return json.total;
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user