summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-08-20 11:15:34 +0200
committerYorhel <git@yorhel.nl>2020-08-20 11:15:34 +0200
commit9bc568ac157590267b099b422c8a49b031ef7c2a (patch)
treed91af1fc9cb27c3b87319c157a27dbd25c21da6d
parent5898a0a3ee189ef3e3da5fb92bf89385b5067a57 (diff)
Reviews::Edit: Expand vndbids in reviews
-rw-r--r--lib/VNWeb/Reviews/Edit.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VNWeb/Reviews/Edit.pm b/lib/VNWeb/Reviews/Edit.pm
index 37cd20c1..fc1e1964 100644
--- a/lib/VNWeb/Reviews/Edit.pm
+++ b/lib/VNWeb/Reviews/Edit.pm
@@ -60,6 +60,9 @@ elm_api ReviewsEdit => $FORM_OUT, $FORM_IN, sub {
validate_dbid 'SELECT id FROM vn WHERE id IN', $data->{vid};
validate_dbid 'SELECT id FROM releases WHERE id IN', $data->{rid} if defined $data->{rid};
+ $data->{summary} = bb_subst_links $data->{summary};
+ $data->{text} = bb_subst_links $data->{text};
+
if($id) {
$data->{lastmod} = sql 'NOW()';
tuwf->dbExeci('UPDATE reviews SET', $data, 'WHERE id =', \$id) if $id;