mirror of
https://github.com/openvk/openvk
synced 2025-07-08 16:53:02 +03:00
Compare commits
5 commits
35735d258e
...
5af2b5d794
Author | SHA1 | Date | |
---|---|---|---|
|
5af2b5d794 | ||
2f4e3c4a78 | |||
|
fd7c2baca1 | ||
|
b2e4791d2d | ||
c54ccf6e28 |
4 changed files with 5 additions and 5 deletions
2
.github/workflows/analyse.yaml
vendored
2
.github/workflows/analyse.yaml
vendored
|
@ -7,7 +7,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
phpstan:
|
phpstan:
|
||||||
name: PHPStan
|
name: PHPStan
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
|
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
|
||||||
if: >
|
if: >
|
||||||
|
|
2
.github/workflows/lint.yaml
vendored
2
.github/workflows/lint.yaml
vendored
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
|
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
|
||||||
if: >
|
if: >
|
||||||
|
|
|
@ -434,7 +434,7 @@ class Audio extends Media
|
||||||
$obj->manifest = $this->getURL();
|
$obj->manifest = $this->getURL();
|
||||||
$obj->keys = $this->getKeys();
|
$obj->keys = $this->getKeys();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($obj->editable) {
|
if ($obj->editable) {
|
||||||
$obj->listens = $this->getListens();
|
$obj->listens = $this->getListens();
|
||||||
}
|
}
|
||||||
|
|
|
@ -537,14 +537,14 @@ final class AudioPresenter extends OpenVKPresenter
|
||||||
DatabaseConnection::i()->getContext()->table("playlist_relations")->where([
|
DatabaseConnection::i()->getContext()->table("playlist_relations")->where([
|
||||||
"collection" => $playlist->getId(),
|
"collection" => $playlist->getId(),
|
||||||
])->delete();
|
])->delete();
|
||||||
|
|
||||||
if (!is_null($new_audios)) {
|
if (!is_null($new_audios)) {
|
||||||
foreach ($new_audios as $new_audio) {
|
foreach ($new_audios as $new_audio) {
|
||||||
$audio = (new Audios())->get((int) $new_audio);
|
$audio = (new Audios())->get((int) $new_audio);
|
||||||
if (!$audio || $audio->isDeleted()) {
|
if (!$audio || $audio->isDeleted()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$playlist->add($audio);
|
$playlist->add($audio);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue