diff options
author | Derf Null <derf@finalrewind.org> | 2023-05-21 19:57:56 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-05-21 19:57:56 +0200 |
commit | 9b83e1a8f19e7e6b38838fd6330f9827e0966df5 (patch) | |
tree | 3484c5184de41e6db1557ccc2f46b35481289207 /lib/Travelynx.pm | |
parent | dbc5c38968a11ac17dc99723bc8866de9f739c28 (diff) |
/status/:user: respond to JSON
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-x | lib/Travelynx.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 643024b..5ae7a9f 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1696,7 +1696,7 @@ sub startup { 'get_user_status_json_v1' => sub { my ( $self, %opt ) = @_; my $uid = $opt{uid}; - my $status = $self->get_user_status($uid); + my $status = $opt{status} // $self->get_user_status($uid); my $ret = { deprecated => \0, |