summaryrefslogtreecommitdiff
path: root/lib/VNDB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-08-06 09:56:39 +0200
committerYorhel <git@yorhel.nl>2020-08-06 13:30:20 +0200
commit55fd685c182397616be8c5af1d8db996b1d2d9b1 (patch)
tree231a4a9bb7dc364f538c8ca91af8b3106e5d3732 /lib/VNDB
parent96084614898f30f06b63fe121b36ba1a25c4f9e7 (diff)
Discussions: Make /t#.# load the correct page without redirect
This removes the need for the post_url() function. This is a small step towards supporting non-continuous post numbers.
Diffstat (limited to 'lib/VNDB')
-rw-r--r--lib/VNDB/Handler/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index 36c18d08..70588d45 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -122,7 +122,7 @@ sub homepage {
my $boards = join ', ', map $BOARD_TYPE{$_->{type}}{txt}.($_->{iid}?' > '.$_->{title}:''), @{$_->{boards}};
li;
txt fmtage($_->{lastpost_date}).' ';
- a href => VNWeb::Discussions::Lib::post_url($_->{id}, $_->{count}, 'last'), title => "Posted in $boards", shorten $_->{title}, 25;
+ a href => "/$_->{id}.$_->{count}#last", title => "Posted in $boards", shorten $_->{title}, 25;
lit ' by ';
VNWeb::HTML::user_($_, 'lastpost_');
end;