What I'd suggest is, on a separate line:

    push \@links, { ... } if $ju->is_community

Then you wouldn't need to edit the FOREACH loop in /entry/success.tt.