summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-07-28 10:55:39 +0200
committerYorhel <git@yorhel.nl>2020-07-28 10:55:41 +0200
commitdaef605046269bcad26525c87d3e9a653db532c6 (patch)
tree08b8b05230ffcf64fb3344509ebb03e4fd641a38
parent342dc200ffa2bdec5243e966c988843805397f1b (diff)
Discussions::Thread: Run bb2html over the thread title to make links clickable
Mainly useful for "Regarding <vndbid>" threads. Could be abused to insert non-inline bbcodes, but easy enough to moderate that.
-rw-r--r--lib/VNWeb/Discussions/Thread.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Discussions/Thread.pm b/lib/VNWeb/Discussions/Thread.pm
index 8c21529c..c49c7e1c 100644
--- a/lib/VNWeb/Discussions/Thread.pm
+++ b/lib/VNWeb/Discussions/Thread.pm
@@ -70,7 +70,7 @@ elm_api DiscussionsReply => $REPLY_OUT, $REPLY_IN, sub {
sub metabox_ {
my($t) = @_;
div_ class => 'mainbox', sub {
- h1_ $t->{title};
+ h1_ sub { lit_ bb2html $t->{title} };
h2_ 'Hidden' if $t->{hidden};
h2_ 'Private' if $t->{private};
h2_ 'Locked' if $t->{locked};