forked from GNUsocial/gnu-social
		
	Drop RSSCloud queue items if the notice has a bogus profile, rather than attempting to rerun it due to the initial erroring-out. That's not a recoverable error
This commit is contained in:
		| @@ -28,7 +28,12 @@ class RSSCloudQueueHandler extends QueueHandler | ||||
|  | ||||
|     function handle($notice) | ||||
|     { | ||||
|         $profile = $notice->getProfile(); | ||||
|         try { | ||||
|             $profile = $notice->getProfile(); | ||||
|         } catch (Exception $e) { | ||||
|             common_log(LOG_ERR, "Dropping RSSCloud item for notice with bogus profile: " . $e->getMessage()); | ||||
|             return true; | ||||
|         } | ||||
|         $notifier = new RSSCloudNotifier(); | ||||
|         return $notifier->notify($profile); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user