]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/deletenotice.php
Twitter integration - Add and remove Twitter accnt now working
[quix0rs-gnu-social.git] / actions / deletenotice.php
index af620f036f18734bdad6412a84bd2b9eb0faf28b..64746283ae5103f18b06823d095412711eeafca4 100644 (file)
@@ -44,7 +44,7 @@ class DeletenoticeAction extends DeleteAction {
        function show_form($error=NULL) {
                $user = common_current_user();
 
-               common_show_header($this->get_title(), array($this, 'show_header'), NULL,
+               common_show_header($this->get_title(), array($this, 'show_header'), $error,
                                                   array($this, 'show_top'));
                common_element_start('form', array('id' => 'notice_delete_form',
                                                                   'method' => 'post',
@@ -84,6 +84,9 @@ class DeletenoticeAction extends DeleteAction {
                        $replies->get('notice_id', $notice_id);
 
                        common_dequeue_notice($notice);
+                       if (common_config('memcached', 'enabled')) {
+                               $notice->blowSubsCache();
+                       }
                        $replies->delete();
                        $notice->delete();
                } else {