[COMPONENT][Tag] Add missing required route paramter nickname

This commit is contained in:
Hugo Sales 2021-12-23 17:11:37 +00:00 committed by Diogo Peralta Cordeiro
parent 2e69eac63e
commit 69565e3f49
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

@ -115,7 +115,7 @@ class Tag extends Controller
}
DB::flush();
Cache::delete(E\Actor::cacheKeys($target->getId(), $target->getId())['tags']);
throw new RedirectException($request->get('_route'), ['open' => $details_id]);
throw new RedirectException($request->get('_route'), ['nickname' => $target->getNickname(), 'open' => $details_id]);
},
handle_existing: function ($form, array $form_definition) use ($request, $target, $details_id) {
$data = $form->getData();
@ -158,7 +158,7 @@ class Tag extends Controller
if ($changed) {
DB::flush();
Cache::delete(E\Actor::cacheKeys($target->getId(), $target->getId())['tags']);
throw new RedirectException($request->get('_route'), ['open' => $details_id]);
throw new RedirectException($request->get('_route'), ['nickname' => $target->getNickname(), 'open' => $details_id]);
}
},
remove_label: _m('Remove self tag'),