summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Misc
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-03-18 12:24:56 +0100
committerYorhel <git@yorhel.nl>2021-03-23 11:16:22 +0100
commita286672505ee3f6dfd9fb5d62cef460e7807176d (patch)
treefae538cff1f1b6e1e1af67082dc633639fae854c /lib/VNWeb/Misc
parent7ffe7fa485c49b3d44150ed7b63d9062ae654ac8 (diff)
Traits: Convert to vndbids + add edit history
Much the same as the previous conversion of tags.
Diffstat (limited to 'lib/VNWeb/Misc')
-rw-r--r--lib/VNWeb/Misc/History.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VNWeb/Misc/History.pm b/lib/VNWeb/Misc/History.pm
index 0ba25232..87156883 100644
--- a/lib/VNWeb/Misc/History.pm
+++ b/lib/VNWeb/Misc/History.pm
@@ -42,6 +42,7 @@ sub fetch {
UNION ALL SELECT chid, title, '' AS original FROM docs_hist
UNION ALL SELECT sh.chid, name, original FROM staff_hist sh JOIN staff_alias_hist sah ON sah.chid = sh.chid AND sah.aid = sh.aid
UNION ALL SELECT chid, name, '' AS original FROM tags_hist
+ UNION ALL SELECT chid, name, '' AS original FROM traits_hist
) t(id, title, original)
WHERE id IN}), $lst;
($lst, $np)
@@ -96,6 +97,7 @@ sub filters_ {
[ p => 'Producers' ],
[ s => 'Staff' ],
[ c => 'Characters' ],
+ [ i => 'Traits' ],
[ d => 'Docs' ],
);
@@ -163,7 +165,7 @@ sub filters_ {
}
-TUWF::get qr{/(?:([upvrcsdg][1-9][0-9]{0,6})/)?hist} => sub {
+TUWF::get qr{/(?:([upvrcsdgi][1-9][0-9]{0,6})/)?hist} => sub {
my $id = tuwf->capture(1)||'';
my $obj = dbobj $id;