- if ($editp) { $m->redirect("$Odin::PASTEBIN/$tag"); }
- else { $m->comp("%edit", tag => $tag, edit => $edit, %props); }
+ my $editp = Odin::update_pastebin $tag, $edit, %props;
+ if ($editp) {
+ $m->redirect("$Odin::PASTEBIN/$tag" . hasuff $edit);
+ } else {
+ $m->comp("%edit", tag => $tag, edit => $edit, %props);
+ }