forked from GNUsocial/gnu-social
OStatus: abort processing of this PuSH in item if we got an exception, rather than letting it be re-run.
This commit is contained in:
parent
10884dcd49
commit
b798faf9ea
@ -40,7 +40,11 @@ class PushInQueueHandler extends QueueHandler
|
|||||||
|
|
||||||
$feedsub = FeedSub::staticGet('id', $feedsub_id);
|
$feedsub = FeedSub::staticGet('id', $feedsub_id);
|
||||||
if ($feedsub) {
|
if ($feedsub) {
|
||||||
$feedsub->receive($post, $hmac);
|
try {
|
||||||
|
$feedsub->receive($post, $hmac);
|
||||||
|
} catch(Exception $e) {
|
||||||
|
common_log(LOG_ERR, "Exception during PuSH input processing for $feedsub->uri: " . $e->getMessage());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
common_log(LOG_ERR, "Discarding POST to unknown feed subscription id $feedsub_id");
|
common_log(LOG_ERR, "Discarding POST to unknown feed subscription id $feedsub_id");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user