From 5b7f130d438801076abb3b81ce6fc300b0d713dd Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 6 Jan 2017 15:41:24 -0500 Subject: [PATCH] Setup some limits on summary/desc --- app.pl | 2 +- templates/editor.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.pl b/app.pl index 4e2aaba..82ea992 100755 --- a/app.pl +++ b/app.pl @@ -72,7 +72,7 @@ post '/paste' => sub { if (my $type = App::Spamfilter::is_spam($c, $who, $desc, $code)) { warn "I thought this was spam! $type"; } else { - IRC::Perlbot::announce($c->param('chan'), $c->param('name'), $c->param('desc'), "https://perlbot.pl/pastebin/$id"); + IRC::Perlbot::announce($c->param('chan'), $c->param('name'), substr($c->param('desc'), 0, 40), "https://perlbot.pl/pastebin/$id"); } $c->redirect_to('/pastebin/'.$id); diff --git a/templates/editor.html b/templates/editor.html index 9bcc880..347de65 100755 --- a/templates/editor.html +++ b/templates/editor.html @@ -58,7 +58,7 @@
- +