summaryrefslogtreecommitdiff
path: root/lib/Multi
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Multi')
-rw-r--r--lib/Multi/Feed.pm6
-rw-r--r--lib/Multi/Maintenance.pm4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Multi/Feed.pm b/lib/Multi/Feed.pm
index 1a955e05..ea9cbcac 100644
--- a/lib/Multi/Feed.pm
+++ b/lib/Multi/Feed.pm
@@ -112,7 +112,7 @@ sub write_atom { # num, res, feed, time
$x->tag(updated => datetime($updated));
$x->tag(id => $VNDB::S{url}.$VNDB::S{atom_feeds}{$feed}[2]);
$x->tag(link => rel => 'self', type => 'application/atom+xml', href => "$VNDB::S{url}/feeds/$feed.atom", undef);
- $x->tag(link => rel => 'alternate', type => 'text/html', href => $VNDB::S{atom_feeds}{$feed}[2], undef);
+ $x->tag(link => rel => 'alternate', type => 'text/html', href => $VNDB::S{url}.$VNDB::S{atom_feeds}{$feed}[2], undef);
for(@$r) {
$x->tag('entry');
@@ -123,10 +123,10 @@ sub write_atom { # num, res, feed, time
if($_->{username}) {
$x->tag('author');
$x->tag(name => $_->{username});
- $x->tag(uri => '/u'.$_->{uid}) if $_->{uid};
+ $x->tag(uri => $VNDB::S{url}.'/u'.$_->{uid}) if $_->{uid};
$x->end;
}
- $x->tag(link => rel => 'alternate', type => 'text/html', href => $_->{id}, undef);
+ $x->tag(link => rel => 'alternate', type => 'text/html', href => $VNDB::S{url}.$_->{id}, undef);
$x->tag('summary', type => 'html', bb2html $_->{summary}) if $_->{summary};
$x->end('entry');
}
diff --git a/lib/Multi/Maintenance.pm b/lib/Multi/Maintenance.pm
index a754e618..e7c66a04 100644
--- a/lib/Multi/Maintenance.pm
+++ b/lib/Multi/Maintenance.pm
@@ -272,7 +272,7 @@ sub logrotate {
sub vnsearch_check {
$_[KERNEL]->call(pg => query =>
- 'SELECT id FROM vn WHERE NOT hidden AND c_search IS NULL LIMIT 1',
+ 'SELECT id FROM vn WHERE c_search IS NULL LIMIT 1',
undef, 'vnsearch_gettitles');
}
@@ -303,7 +303,7 @@ sub vnsearch_update { # num, res, vid, time
my @t = map +($_->{title}, $_->{original}), @$res;
# alias fields are a bit special
for (@$res) {
- push @t, split /,/, $_->{alias} if $_->{alias};
+ push @t, split /[\n,]/, $_->{alias} if $_->{alias};
}
my $t = normalize_titles(@t);
$_[KERNEL]->call(core => log => 'Updated search cache for v%d', $id);