dont crash site when recent paste gets deleted
This commit is contained in:
parent
f320b768b1
commit
d32d9086bc
|
@ -368,7 +368,8 @@
|
||||||
(table ((style "margin-top:-15px;font-size:95%"))
|
(table ((style "margin-top:-15px;font-size:95%"))
|
||||||
,@(reverse
|
,@(reverse
|
||||||
(with-redis-connection
|
(with-redis-connection
|
||||||
(for/list ([pnum recent-pastes] #:when pnum)
|
(for/list ([pnum recent-pastes] #:when pnum
|
||||||
|
#:when (HGET/str pnum 'name))
|
||||||
(define name (HGET/str pnum 'name))
|
(define name (HGET/str pnum 'name))
|
||||||
(define trunc-name
|
(define trunc-name
|
||||||
(string-truncate name PASTE-TITLE-DISPLAY-LEN))
|
(string-truncate name PASTE-TITLE-DISPLAY-LEN))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user