mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Fix condition in Media::save which made videos stay in processing status for infinite amount of time
This commit is contained in:
parent
fb141e259b
commit
26cb287b67
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ abstract class Media extends Postable
|
|||
|
||||
function save(): void
|
||||
{
|
||||
if(!is_null($this->processingPlaceholder)) {
|
||||
if(!is_null($this->processingPlaceholder) && is_null($this->getRecord())) {
|
||||
$this->stateChanges("processed", 0);
|
||||
$this->stateChanges("last_checked", time());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue