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'])) { @@ -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

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

@ -73,6 +73,7 @@ var ModuleFollowing = { @@ -73,6 +73,7 @@ var ModuleFollowing = {
url: 'api/user/profile',
type: 'GET',
data: {
format: true,
userName: userName
},
success: function (response) {

Loading…
Cancel
Save