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