Skip to content

Commit 3208999

Browse files
committed
3.2.0
1 parent a0df88c commit 3208999

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

js/app.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,13 +1085,18 @@ OCA.Audioplayer.Backend = {
10851085
});
10861086
},
10871087

1088-
whatsnewDismiss: function dismiss(version) {
1089-
let data = {version: encodeURIComponent(version)};
1090-
let xhr = new XMLHttpRequest();
1091-
xhr.open('POST', OC.generateUrl('apps/audioplayer/whatsnew'));
1092-
xhr.setRequestHeader('requesttoken', OC.requestToken);
1093-
xhr.setRequestHeader('OCS-APIREQUEST', 'true');
1094-
xhr.send(JSON.stringify(data));
1088+
whatsnewDismiss: function (version) {
1089+
//let data = {version: encodeURIComponent(version)};
1090+
//let xhr = new XMLHttpRequest();
1091+
//xhr.open('POST', OC.generateUrl('apps/audioplayer/whatsnew'));
1092+
//xhr.setRequestHeader('requesttoken', OC.requestToken);
1093+
//xhr.setRequestHeader('OCS-APIREQUEST', 'true');
1094+
//xhr.send(JSON.stringify(data));
1095+
$.ajax({
1096+
type: 'POST',
1097+
url: OC.generateUrl('apps/audioplayer/whatsnew'),
1098+
data: {version: encodeURIComponent(version)}
1099+
})
10951100

10961101
let elem = document.querySelector('.whatsNewPopover');
10971102
elem.parentNode.removeChild(elem);

lib/Controller/WhatsNewController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ public function get(): DataResponse
7777
$iterator = $this->langFactory->getLanguageIterator();
7878
$whatsNew = $this->whatsNewService->getChangesForVersion($currentVersion);
7979

80-
$this->logger->debug(json_encode($whatsNew));
81-
8280
$resultData = [
8381
'changelogURL' => $whatsNew['changelogURL'],
8482
'product' => 'Audioplayer',
@@ -101,10 +99,12 @@ public function get(): DataResponse
10199
/**
102100
* @NoAdminRequired
103101
*
104-
* @throws \OCP\PreConditionNotMetException
102+
* @param string $version
103+
* @return DataResponse
105104
* @throws DoesNotExistException
105+
* @throws \OCP\PreConditionNotMetException
106106
*/
107-
public function dismiss(string $version): DataResponse
107+
public function dismiss($version)
108108
{
109109
$user = $this->userSession->getUser();
110110
if ($user === null) {

lib/Migration/Version3002Date20210019213332.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array
5757
$query = $this->connection->getQueryBuilder();
5858
$query->insert('audioplayer_whats_new')
5959
->values([
60-
'version' => $query->createNamedParameter('2.11.0'),
60+
'version' => $query->createNamedParameter('3.2.0'),
6161
'data' => $query->createNamedParameter('{"changelogURL":"https:\/\/github.com\/rello\/audioplayer\/blob\/master\/CHANGELOG.md","whatsNew":{
6262
"en":{"regular":["Collaborative tags support","Dashboard widget"],"admin":["New Features apply to users"]},
6363
"de":{"regular":["Collaborative tags support","Dashboard widget"],"admin":["Nur User Features"]}

lib/WhatsNew/WhatsNewCheck.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ protected function evaluateResponse(IResponse $response): int
131131
} elseif ($response->getStatusCode() === 200) {
132132
return self::RESPONSE_HAS_CONTENT;
133133
}
134-
$this->logger->debug('Unexpected return code {code} from changelog server', [
135-
'app' => 'core',
136-
'code' => $response->getStatusCode(),
137-
]);
138134
return self::RESPONSE_NO_CONTENT;
139135
}
140136

0 commit comments

Comments
 (0)