FeedPoller plugin, for hubless feeds

This commit is contained in:
Mikael Nordfeldth
2015-01-14 01:16:28 +01:00
parent 57d8eb8a53
commit 8594a2ba16
5 changed files with 243 additions and 1 deletions

View File

@@ -435,7 +435,7 @@ class FeedSub extends Managed_DataObject
{
common_log(LOG_INFO, __METHOD__ . ": packet for \"" . $this->getUri() . "\"! $hmac $post");
if ($this->sub_state != 'active') {
if (!in_array($this->sub_state, array('active', 'nohub'))) {
common_log(LOG_ERR, __METHOD__ . ": ignoring PuSH for inactive feed " . $this->getUri() . " (in state '$this->sub_state')");
return;
}