mirror of
https://github.com/openvk/openvk
synced 2025-07-07 08:19:49 +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:
|
||||
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
|
||||
if: >
|
||||
|
|
2
.github/workflows/lint.yaml
vendored
2
.github/workflows/lint.yaml
vendored
|
@ -6,7 +6,7 @@ on:
|
|||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
|
||||
if: >
|
||||
|
|
|
@ -434,7 +434,7 @@ class Audio extends Media
|
|||
$obj->manifest = $this->getURL();
|
||||
$obj->keys = $this->getKeys();
|
||||
}
|
||||
|
||||
|
||||
if ($obj->editable) {
|
||||
$obj->listens = $this->getListens();
|
||||
}
|
||||
|
|
|
@ -537,14 +537,14 @@ final class AudioPresenter extends OpenVKPresenter
|
|||
DatabaseConnection::i()->getContext()->table("playlist_relations")->where([
|
||||
"collection" => $playlist->getId(),
|
||||
])->delete();
|
||||
|
||||
|
||||
if (!is_null($new_audios)) {
|
||||
foreach ($new_audios as $new_audio) {
|
||||
$audio = (new Audios())->get((int) $new_audio);
|
||||
if (!$audio || $audio->isDeleted()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$playlist->add($audio);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue