From 0d0866be1e5effe3155eb6bca3b821f91efb0d80 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 23 Feb 2023 14:28:43 +0100 Subject: [PATCH] Fix stupid post content Remove the actual content of each entry. Friendi.ca will then use the title as content. I also adjusted the contact within friendi.ca to not fetch additional info to enrich the post. This should provide 100% control via feed content. --- src/Wrapper/GitHubTypo3.php | 3 +- .../Unit/Wrapper/Assertions/GitHubTypo3.atom | 38 +++++++++---------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/Wrapper/GitHubTypo3.php b/src/Wrapper/GitHubTypo3.php index 240c6dd..ef2037a 100644 --- a/src/Wrapper/GitHubTypo3.php +++ b/src/Wrapper/GitHubTypo3.php @@ -48,7 +48,8 @@ class GitHubTypo3 implements WrapperInterface $content->loadXML(file_get_contents($this->url)); foreach ($content->getElementsByTagName('entry') as $entry) { - $entry->getElementsByTagName('content')[0]->nodeValue = trim($entry->getElementsByTagName('title')[0]->textContent); + // Remove content (body in friendica), title will become body within friendica + $entry->getElementsByTagName('content')[0]->nodeValue = ''; } return $content->saveXML(); diff --git a/tests/Unit/Wrapper/Assertions/GitHubTypo3.atom b/tests/Unit/Wrapper/Assertions/GitHubTypo3.atom index 8c5f65e..3ab3213 100644 --- a/tests/Unit/Wrapper/Assertions/GitHubTypo3.atom +++ b/tests/Unit/Wrapper/Assertions/GitHubTypo3.atom @@ -17,7 +17,7 @@ josefglatz https://github.com/josefglatz - [BUGFIX] Fix capitalization in recordlist heading + tag:github.com,2008:Grit::Commit/4936022b6a37dd9daa6f9fffd596caa40b16944b @@ -31,7 +31,7 @@ nhovratov https://github.com/nhovratov - [BUGFIX] Fix typo for a fe_users language key + tag:github.com,2008:Grit::Commit/6797361e3272171f38afdcc6ef9f3bfc393a02d9 @@ -45,7 +45,7 @@ georgringer https://github.com/georgringer - [BUGFIX] Add type cast for potential mountpoint information + tag:github.com,2008:Grit::Commit/2115fe399dea3e8f8d134dcd02f854a5147d9de1 @@ -59,7 +59,7 @@ typo3@timhorstmann.de - [BUGFIX] Get the correct next stage for moved elements in workspace + tag:github.com,2008:Grit::Commit/953b80055f67d5753d7ef142ace3c49f042209f4 @@ -73,7 +73,7 @@ ochorocho https://github.com/ochorocho - [BUGFIX] Position sidebar in image cropping correctly on the right + tag:github.com,2008:Grit::Commit/3b1089c8594d4d1638939b0bb7bb5e67c37e8795 @@ -87,7 +87,7 @@ andreasfernandez https://github.com/andreasfernandez - [TASK] Refine LiveSearch form behavior + tag:github.com,2008:Grit::Commit/ec8d82c39732903e07677755116ef70e1c670d6c @@ -101,7 +101,7 @@ lolli42 https://github.com/lolli42 - [TASK] Move PageTsBackendLayoutDataProvider namespace + tag:github.com,2008:Grit::Commit/e0ba68e2629383b3174c02d4f246cd675d1af3cf @@ -115,7 +115,7 @@ andreasfernandez https://github.com/andreasfernandez - [BUGFIX] Handle FormData passed to AjaxRequest API properly + tag:github.com,2008:Grit::Commit/7e57642c91aacbb1a1ad16895caf1cad1f504156 @@ -129,7 +129,7 @@ lolli42 https://github.com/lolli42 - [TASK] Avoid GU::_GP() in DataHandler + tag:github.com,2008:Grit::Commit/51bef53fe5775b0708155921080ccbe66952cc3e @@ -143,7 +143,7 @@ lolli42 https://github.com/lolli42 - [TASK] Avoid GU::_GP() in PageTsBackendLayoutDataProvider + tag:github.com,2008:Grit::Commit/773c4f581b17a96e9cc17436d546385100c72f81 @@ -157,7 +157,7 @@ ochorocho https://github.com/ochorocho - [TASK] Add delete action for usergroup list + tag:github.com,2008:Grit::Commit/32dc37fe7d61990fb74cc3d559089576439e4c7f @@ -171,7 +171,7 @@ sbuerk https://github.com/sbuerk - [BUGFIX] Guard ConstantEditor with copy operator in constants + tag:github.com,2008:Grit::Commit/c3c61edff0983a99d30d6cbc32ef0b2cb29661cb @@ -185,7 +185,7 @@ maddy2101 https://github.com/maddy2101 - [TASK] Deprecate PageRenderer->enableDebugMode() + tag:github.com,2008:Grit::Commit/68d67171c1d9a61e0d056ae849aa0c1db4ba6eda @@ -199,7 +199,7 @@ oliverklee https://github.com/oliverklee - [TASK] Deprecate the limit parameter for GU::intExplode + tag:github.com,2008:Grit::Commit/0a9b218aadbb772e1c37f9ca0b446bd6c1648542 @@ -213,7 +213,7 @@ andreasfernandez https://github.com/andreasfernandez - [TASK] Refine LiveSearch search demand + tag:github.com,2008:Grit::Commit/26ca6872684ccc469a9e2981cb8cf3bb83134d12 @@ -227,7 +227,7 @@ lolli42 https://github.com/lolli42 - [BUGFIX] Toolbar link to environment opens in iframe + tag:github.com,2008:Grit::Commit/614e15d76087e775b965c4fb6e5e4ae59692c128 @@ -241,7 +241,7 @@ alexanderschnitzler https://github.com/alexanderschnitzler - [TASK] Make extbase repository generic (phpstan-wise) + tag:github.com,2008:Grit::Commit/f54531dad88addc4639f09b4cc37228524156d0c @@ -255,7 +255,7 @@ MaxKellermann https://github.com/MaxKellermann - [TASK] Eliminate double serialization in ApcuBackend + tag:github.com,2008:Grit::Commit/66d3625281f47ef788f8663c0dbd050081d3fe74 @@ -269,6 +269,6 @@ sypets https://github.com/sypets - [BUGFIX] Handle array access in LocalImageProcessor +