return $ret;
}
+sub _db_search_lastpost {
+ my ($me, $who) = @_;
+
+ my $sth = $me->{dbh}->prepare('select * from posts where submitter = ? order by post_time desc limit 1');
+ $sth->bind_param(1, $who, SQL_VARCHAR);
+ $sth->execute();
+
+ my $ret = $sth->fetch_arrayref();
+ $sth->finish;
+
+ return $ret;
+}
+
sub _fb_post_uri {
my ($me, $post_id) = @_;
$req->header('Content-Length', 0);
my $resp;
eval{$resp = LWP::UserAgent->new->request($req)};
- warn $resp;
return !$@;
}