From f95a3c27a283980aaae3371a3434e4488781d887 Mon Sep 17 00:00:00 2001 From: PuercoPop Date: Wed, 7 May 2014 13:53:59 -0500 Subject: [PATCH] Hook to publish instead of render --- plugins/twitter.lisp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/twitter.lisp b/plugins/twitter.lisp index 9f4080f..7d9a262 100644 --- a/plugins/twitter.lisp +++ b/plugins/twitter.lisp @@ -3,7 +3,9 @@ (defpackage :coleslaw-twitter (:use :cl) - (:import-from :coleslaw :*config*) + (:import-from :coleslaw + :*config* + :publish) (:export #:enable)) (in-package :coleslaw-twitter) @@ -26,7 +28,7 @@ (when tweet-format (setf *tweet-format* tweet-format))) -(defmethod render :after (post (eql (find-class 'coleslaw:post))) +(defmethod publish :after (post (eql (find-class 'coleslaw:post))) (format-post post)) (defun format-post (post)