Browse Source

add profile format as request option

main
ghost 3 years ago
parent
commit
26fdeebf05
  1. 2
      src/application/controller/api/user/profile.php
  2. 1
      src/public/js/module/following.js

2
src/application/controller/api/user/profile.php

@ -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

1
src/public/js/module/following.js

@ -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…
Cancel
Save