mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-12 21:41:09 +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'],
|
||||
'bitMessage' => $dbProfileRevision['bitMessage'],
|
||||
'tox' => $dbProfileRevision['tox'],
|
||||
'bio' => Format::bio($dbProfileRevision['bio']),
|
||||
'bio' => isset($_GET['format']) ? Format::bio($dbProfileRevision['bio']) : $dbProfileRevision['bio'],
|
||||
];
|
||||
|
||||
// Save request into the cache pool
|
||||
|
@ -73,6 +73,7 @@ var ModuleFollowing = {
|
||||
url: 'api/user/profile',
|
||||
type: 'GET',
|
||||
data: {
|
||||
format: true,
|
||||
userName: userName
|
||||
},
|
||||
success: function (response) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user