mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-13 05:51:46 +00:00
add profile format as request option
This commit is contained in:
parent
19a8412628
commit
26fdeebf05
@ -78,7 +78,7 @@ if (isset($_SESSION['userName'])) {
|
|||||||
'url' => $dbProfileRevision['url'],
|
'url' => $dbProfileRevision['url'],
|
||||||
'bitMessage' => $dbProfileRevision['bitMessage'],
|
'bitMessage' => $dbProfileRevision['bitMessage'],
|
||||||
'tox' => $dbProfileRevision['tox'],
|
'tox' => $dbProfileRevision['tox'],
|
||||||
'bio' => Format::bio($dbProfileRevision['bio']),
|
'bio' => isset($_GET['format']) ? Format::bio($dbProfileRevision['bio']) : $dbProfileRevision['bio'],
|
||||||
];
|
];
|
||||||
|
|
||||||
// Save request into the cache pool
|
// Save request into the cache pool
|
||||||
|
@ -73,6 +73,7 @@ var ModuleFollowing = {
|
|||||||
url: 'api/user/profile',
|
url: 'api/user/profile',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
data: {
|
data: {
|
||||||
|
format: true,
|
||||||
userName: userName
|
userName: userName
|
||||||
},
|
},
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user