diff --git a/app.json b/app.json index f18479957f5..f79d7138f87 100644 --- a/app.json +++ b/app.json @@ -1,8 +1,8 @@ { "service": "Heroku", - "name": "RSS-Bridge", + "name": "rss-bridge-heroku", "description": "RSS-Bridge is a PHP project capable of generating RSS and Atom feeds for websites which don't have one.", - "repository": "https://github.com/RSS-Bridge/rss-bridge", + "repository": "https://github.com/RSS-Bridge/rss-bridge?1651005770", "keywords": ["php", "rss-bridge", "rss"] } diff --git a/bridges/AsahiShimbunAJWBridge.php b/bridges/AsahiShimbunAJWBridge.php index 1c3cf59fd6d..2e7c5dc2384 100644 --- a/bridges/AsahiShimbunAJWBridge.php +++ b/bridges/AsahiShimbunAJWBridge.php @@ -20,9 +20,10 @@ class AsahiShimbunAJWBridge extends BridgeAbstract { 'Culture » Style' => 'culture/style', 'Culture » Movies' => 'culture/movies', 'Culture » Manga & Anime' => 'culture/manga_anime', - 'Asia » China' => 'asia/china', - 'Asia » Korean Peninsula' => 'asia/korean_peninsula', - 'Asia » Around Asia' => 'asia/around_asia', + 'Asia » China' => 'asia_world/china', + 'Asia » Korean Peninsula' => 'asia_world/korean_peninsula', + 'Asia » Around Asia' => 'asia_world/around_asia', + 'Asia » World' => 'asia_world/world', 'Opinion » Editorial' => 'opinion/editorial', 'Opinion » Vox Populi' => 'opinion/vox', ), diff --git a/bridges/TwitterV2Bridge.php b/bridges/TwitterV2Bridge.php index 124ecdeb7cc..acebe7589e7 100644 --- a/bridges/TwitterV2Bridge.php +++ b/bridges/TwitterV2Bridge.php @@ -362,6 +362,7 @@ public function collectData() { // Start setting values needed for HTML output if($isRetweet || is_null($user)) { + Debug::log('Tweet is retweet, or $user is null'); // Replace tweet object with original retweeted object if($isRetweet) { foreach($includesTweets as $includesTweet) { @@ -380,17 +381,21 @@ public function collectData() { // Get user object for retweeted tweet $originalUser = new stdClass(); // make the linters stop complaining if(isset($retweetedUsers)) { + Debug::log('Searching for tweet author_id in $retweetedUsers'); foreach($retweetedUsers as $retweetedUser) { if($retweetedUser->id === $tweet->author_id) { $originalUser = $retweetedUser; + Debug::log('Found author_id match in $retweetedUsers'); break; } } } - if(!$originalUser && isset($includesUsers)) { + if(!isset($originalUser->username) && isset($includesUsers)) { + Debug::log('Searching for tweet author_id in $includesUsers'); foreach($includesUsers as $includesUser) { if($includesUser->id === $tweet->author_id) { $originalUser = $includesUser; + Debug::log('Found author_id match in $includesUsers'); break; } }