Added 'title' to the list of fields pulled from the DB for posts

This commit is contained in:
Brian O'Donnell
2015-04-20 09:59:59 -04:00
parent 8da031f5dd
commit d592adc5cd
+1 -1
View File
@@ -89,7 +89,7 @@ sub publish_feed {
my $dbh = connect_to_db( $db_file );
my $sth = $dbh->prepare(
"SELECT guid, link, hashtags FROM feeds WHERE feed_id == \"$feed_id\" AND posted == 0 AND timestamp > " . ( time - ( $timeout * 3600 ))
"SELECT guid, title, link, hashtags FROM feeds WHERE feed_id == \"$feed_id\" AND posted == 0 AND timestamp > " . ( time - ( $timeout * 3600 ))
) or die "Can't prepare statement: $DBI::errstr";
$sth->execute() or die "Can't execute statement: $DBI::errstr";