[pLog-svn] r7272 - plugins/branches/lifetype-1.2/subscribe

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Feb 8 09:57:13 EST 2024


Author: jondaley
Date: 2024-02-08 09:57:13 -0500 (Thu, 08 Feb 2024)
New Revision: 7272

Modified:
   plugins/branches/lifetype-1.2/subscribe/pluginsubscribe.class.php
Log:
uncommented previously commented line, and added in other events for when posts are updated via the front end, which I think happens via XMLRPC

Modified: plugins/branches/lifetype-1.2/subscribe/pluginsubscribe.class.php
===================================================================
--- plugins/branches/lifetype-1.2/subscribe/pluginsubscribe.class.php	2024-02-08 14:52:19 UTC (rev 7271)
+++ plugins/branches/lifetype-1.2/subscribe/pluginsubscribe.class.php	2024-02-08 14:57:13 UTC (rev 7272)
@@ -57,8 +57,11 @@
     $this->registerBlogAction("subscribeRemove",
                               "PluginSubscribeRemoveAction");
         // we care about when posts and comments are posted
-        // TODO: this doesn't need to be on the front end?? $this->registerNotification(EVENT_POST_POST_ADD);
     $this->registerNotification(EVENT_POST_COMMENT_ADD);
+        // TODO: posts need to be on the front end for XMLRPC?
+    $this->registerNotification(EVENT_POST_POST_ADD);
+    $this->registerNotification(EVENT_POST_POST_UPDATE);
+    $this->registerNotification(EVENT_PRE_POST_UPDATE);
         // We need a filter because the email address is required
         // if the subscribe checkbox is checked.
     $this->registerFilter("SubscribeFilter");



More information about the pLog-svn mailing list