Add date for RSS feeds (#4)

- First cut of user message add/display
This commit is contained in:
2024-04-11 19:07:39 -04:00
parent 8ca4bf2109
commit 7d294b9be8
4 changed files with 41 additions and 17 deletions

View File

@@ -118,10 +118,10 @@ class Data {
*
* @param string $url The URL for the RSS feed
* @param string $title The title of the RSS feed
* @param string $updatedOn The date/time the RSS feed was last updated (from the XML, not when we checked)
* @param ?string $updatedOn The date/time the RSS feed was last updated (from the XML, not when we checked)
* @return int The ID of the added feed
*/
public static function addFeed(string $url, string $title, string $updatedOn): int {
public static function addFeed(string $url, string $title, ?string $updatedOn): int {
$db = self::getConnection();
$query = $db->prepare(<<<'SQL'
INSERT INTO feed (