Browse Source

[GooglePlusPostBridge] Skip posts without message

logmanoriginal 5 years ago
parent
commit
53bdfa3bf0
1 changed files with 5 additions and 0 deletions
  1. 5 0
      bridges/GooglePlusPostBridge.php

+ 5 - 0
bridges/GooglePlusPostBridge.php

@@ -57,6 +57,11 @@ class GooglePlusPostBridge extends BridgeAbstract{
 
 			$message = $post->find('div[jsname=EjRJtf]', 0);
 
+			// Empty messages are not supported right now
+			if(!$message) {
+				continue;
+			}
+
 			$item['content'] = '<div style="float: left; padding: 0 10px 10px 0;"><a href="'
 			. $this->url
 			. '"><img align="top" alt="'