]> git.localhorst.tv Git - alttp.git/commitdiff
actually prevent shit?
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 11 Jul 2025 13:20:12 +0000 (15:20 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 11 Jul 2025 13:20:12 +0000 (15:20 +0200)
app/Console/Commands/DiscordEpisodeSubscriptionsCommand.php

index dce4105216dab96986291e63a8b517bc45377d34..47fdf75da9d01a81ccbab86b731f54e17d13fa3e 100644 (file)
@@ -93,7 +93,7 @@ class DiscordEpisodeSubscriptionsCommand extends Command
                        }
                }
                $memo = $this->getMemo($guild, $episode);
-               if ((is_null($memo->synced_at) && $episode->start > now()) || $memo->synced_at < $mtime) {
+               if ((is_null($memo->synced_at) && $episode->start > now()) || (!is_null($memo->synced_at) && $memo->synced_at < $mtime)) {
                        $this->line('pushing '.$episode->id.' '.$episode->getScheduledEventName());
                        DiscordBotCommand::episodeEvent($guild, $episode);
                }