|
|
@ -34,10 +34,6 @@
|
|
|
|
* @return \Generator<int,CurlHandle,CurlHandle|false,void>
|
|
|
|
* @return \Generator<int,CurlHandle,CurlHandle|false,void>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function fetch_room_icon_coroutine(\CommunityRoom $room): Generator {
|
|
|
|
function fetch_room_icon_coroutine(\CommunityRoom $room): Generator {
|
|
|
|
if (room_icon_safety($room) < 0) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$room_id = $room->get_room_identifier();
|
|
|
|
$room_id = $room->get_room_identifier();
|
|
|
|
$icon_cached = room_icon_path($room_id);
|
|
|
|
$icon_cached = room_icon_path($room_id);
|
|
|
|
$icon_expired = file_exists($icon_cached) && filemtime($icon_cached) < strtotime("-1 day");
|
|
|
|
$icon_expired = file_exists($icon_cached) && filemtime($icon_cached) < strtotime("-1 day");
|
|
|
|