Skip to content

Commit 5540d65

Browse files
committed
The Fastly role is required to purge_author_key
It was throwing an error because after saving the profile because $self->purge_author_key didn't exist, which resulted in the frontend showing an empty profile with a success message. In the frontend the result $res came in with only a `raw` key, but no `error` key, so no error was ever displayed. Fixes metacpan/metacpan-web#1846.
1 parent eb8150c commit 5540d65

File tree

1 file changed

+2
-0
lines changed
  • lib/MetaCPAN/Server/Controller

1 file changed

+2
-0
lines changed

lib/MetaCPAN/Server/Controller/User.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ use Moose;
88

99
BEGIN { extends 'Catalyst::Controller::REST' }
1010

11+
with 'MetaCPAN::Role::Fastly';
12+
1113
__PACKAGE__->config(
1214
json_options => { relaxed => 1, allow_nonref => 1 },
1315
default => 'text/html',

0 commit comments

Comments
 (0)