Skip to content

Commit

Permalink
CONTRIB-9601: Fix dismissed recording filter field (#631)
Browse files Browse the repository at this point in the history
* CONTRIB-9569: Fix dismissed recordings

* Added check that recording was successfully retrieved from BBB server before marking it as dismissed because no metadata exists

* CONTRIB-9601: Fix dismissed recording filter field
  • Loading branch information
ssj365 authored Jul 8, 2024
1 parent a002931 commit 674a050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/recording.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ protected static function fetch_records(array $selects, array $params): array {
// Filter out if no metadata was fetched.
if (!array_key_exists($recording->recordingid, $metadatas)) {
// If the recording was successfully fetched, mark it as dismissed if it is older than 30 days.
if (!in_array($recording->recordingid, $failedids) && $withindays > $recording->timecreated) {

if (!in_array($recording->recordingid, $failedids) && $withindays > $recording->timemodified) {
$recording = new self(0, $recording, null);
$recording->set_status(self::RECORDING_STATUS_DISMISSED);
}
Expand Down

0 comments on commit 674a050

Please sign in to comment.