diff options
author | Yorhel <git@yorhel.nl> | 2020-08-05 16:48:25 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-08-06 13:30:16 +0200 |
commit | 96084614898f30f06b63fe121b36ba1a25c4f9e7 (patch) | |
tree | 068424a36fd3afa66857e0925a5c353419002323 /lib/VNDB/Handler/Misc.pm | |
parent | ad0819cc292b25190233e837b8b653ba77710ddd (diff) |
SQL: Use vndbid for thread identifiers
Also drop the thread_poll_votes.tid column, as it's not really
necessary.
And add ON DELETE CASCADEs to threads_posts and threads_boards to
simplify thread deletion.
Relatively invasive change, prolly broke something.
Diffstat (limited to 'lib/VNDB/Handler/Misc.pm')
-rw-r--r-- | lib/VNDB/Handler/Misc.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index 25d10c39..36c18d08 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -102,7 +102,7 @@ sub homepage { for (@$an) { my $post = $self->dbPostGet(tid => $_->{id}, num => 1)->[0]; h2; - a href => "/t$_->{id}", $_->{title}; + a href => "/$_->{id}", $_->{title}; end; p; lit bb2html $post->{msg}, 150; |