diff options
author | Yorhel <git@yorhel.nl> | 2020-09-02 13:46:45 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-09-02 13:46:47 +0200 |
commit | 3d53b0d6b8d9aa8e52c96c3ed6ac9f7dc1d660f4 (patch) | |
tree | 4d44b873b7e5d5483484cbd9cb6f0940723957c6 /lib/VNWeb/Staff | |
parent | d019f3a2bc73e9513ec6489ac742faa0f8f560dc (diff) |
BBCode: Consolidate bb2html & bb2text + only convert ids in thread titles
Fixing bb2html to only convert ids would complicate options a lot,
adding a new formatting function to only convert ids would make sense,
but then all formatting functions kind of look alike, so I figured a
single bb_format() to support all use cases may be a better approach.
Trigger for this was that people do (understandably) put [spoiler] in
thread titles, and that should not be interpreted as the spoiler tag.
Diffstat (limited to 'lib/VNWeb/Staff')
-rw-r--r-- | lib/VNWeb/Staff/Page.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNWeb/Staff/Page.pm b/lib/VNWeb/Staff/Page.pm index 72227559..8f6e0897 100644 --- a/lib/VNWeb/Staff/Page.pm +++ b/lib/VNWeb/Staff/Page.pm @@ -171,7 +171,7 @@ TUWF::get qr{/$RE{srev}} => sub { framework_ title => $main->{name}, index => !tuwf->capture('rev'), type => 's', dbobj => $s, hiddenmsg => 1, og => { - description => bb2text $s->{desc} + description => bb_format $s->{desc}, text => 1 }, sub { _rev_ $s if tuwf->capture('rev'); @@ -180,7 +180,7 @@ TUWF::get qr{/$RE{srev}} => sub { h1_ sub { txt_ $main->{name}; debug_ $s }; h2_ class => 'alttitle', lang => $s->{lang}, $main->{original} if $main->{original}; _infotable_ $main, $s; - p_ class => 'description', sub { lit_ bb2html $s->{desc} }; + p_ class => 'description', sub { lit_ bb_format $s->{desc} }; }; _roles_ $s; |