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.
This commit is contained in:
Daniel Siepmann 2023-02-23 14:28:43 +01:00
parent 787be4ed2c
commit 0d0866be1e
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 21 additions and 20 deletions

View file

@ -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();

View file

@ -17,7 +17,7 @@
<name>josefglatz</name>
<uri>https://github.com/josefglatz</uri>
</author>
<content type="html">[BUGFIX] Fix capitalization in recordlist heading</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/4936022b6a37dd9daa6f9fffd596caa40b16944b</id>
@ -31,7 +31,7 @@
<name>nhovratov</name>
<uri>https://github.com/nhovratov</uri>
</author>
<content type="html">[BUGFIX] Fix typo for a fe_users language key</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/6797361e3272171f38afdcc6ef9f3bfc393a02d9</id>
@ -45,7 +45,7 @@
<name>georgringer</name>
<uri>https://github.com/georgringer</uri>
</author>
<content type="html">[BUGFIX] Add type cast for potential mountpoint information</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/2115fe399dea3e8f8d134dcd02f854a5147d9de1</id>
@ -59,7 +59,7 @@
<name/>
<email>typo3@timhorstmann.de</email>
</author>
<content type="html">[BUGFIX] Get the correct next stage for moved elements in workspace</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/953b80055f67d5753d7ef142ace3c49f042209f4</id>
@ -73,7 +73,7 @@
<name>ochorocho</name>
<uri>https://github.com/ochorocho</uri>
</author>
<content type="html">[BUGFIX] Position sidebar in image cropping correctly on the right</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/3b1089c8594d4d1638939b0bb7bb5e67c37e8795</id>
@ -87,7 +87,7 @@
<name>andreasfernandez</name>
<uri>https://github.com/andreasfernandez</uri>
</author>
<content type="html">[TASK] Refine LiveSearch form behavior</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/ec8d82c39732903e07677755116ef70e1c670d6c</id>
@ -101,7 +101,7 @@
<name>lolli42</name>
<uri>https://github.com/lolli42</uri>
</author>
<content type="html">[TASK] Move PageTsBackendLayoutDataProvider namespace</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/e0ba68e2629383b3174c02d4f246cd675d1af3cf</id>
@ -115,7 +115,7 @@
<name>andreasfernandez</name>
<uri>https://github.com/andreasfernandez</uri>
</author>
<content type="html">[BUGFIX] Handle FormData passed to AjaxRequest API properly</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/7e57642c91aacbb1a1ad16895caf1cad1f504156</id>
@ -129,7 +129,7 @@
<name>lolli42</name>
<uri>https://github.com/lolli42</uri>
</author>
<content type="html">[TASK] Avoid GU::_GP() in DataHandler</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/51bef53fe5775b0708155921080ccbe66952cc3e</id>
@ -143,7 +143,7 @@
<name>lolli42</name>
<uri>https://github.com/lolli42</uri>
</author>
<content type="html">[TASK] Avoid GU::_GP() in PageTsBackendLayoutDataProvider</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/773c4f581b17a96e9cc17436d546385100c72f81</id>
@ -157,7 +157,7 @@
<name>ochorocho</name>
<uri>https://github.com/ochorocho</uri>
</author>
<content type="html">[TASK] Add delete action for usergroup list</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/32dc37fe7d61990fb74cc3d559089576439e4c7f</id>
@ -171,7 +171,7 @@
<name>sbuerk</name>
<uri>https://github.com/sbuerk</uri>
</author>
<content type="html">[BUGFIX] Guard ConstantEditor with copy operator in constants</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/c3c61edff0983a99d30d6cbc32ef0b2cb29661cb</id>
@ -185,7 +185,7 @@
<name>maddy2101</name>
<uri>https://github.com/maddy2101</uri>
</author>
<content type="html">[TASK] Deprecate PageRenderer-&gt;enableDebugMode()</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/68d67171c1d9a61e0d056ae849aa0c1db4ba6eda</id>
@ -199,7 +199,7 @@
<name>oliverklee</name>
<uri>https://github.com/oliverklee</uri>
</author>
<content type="html">[TASK] Deprecate the limit parameter for GU::intExplode</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/0a9b218aadbb772e1c37f9ca0b446bd6c1648542</id>
@ -213,7 +213,7 @@
<name>andreasfernandez</name>
<uri>https://github.com/andreasfernandez</uri>
</author>
<content type="html">[TASK] Refine LiveSearch search demand</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/26ca6872684ccc469a9e2981cb8cf3bb83134d12</id>
@ -227,7 +227,7 @@
<name>lolli42</name>
<uri>https://github.com/lolli42</uri>
</author>
<content type="html">[BUGFIX] Toolbar link to environment opens in iframe</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/614e15d76087e775b965c4fb6e5e4ae59692c128</id>
@ -241,7 +241,7 @@
<name>alexanderschnitzler</name>
<uri>https://github.com/alexanderschnitzler</uri>
</author>
<content type="html">[TASK] Make extbase repository generic (phpstan-wise)</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/f54531dad88addc4639f09b4cc37228524156d0c</id>
@ -255,7 +255,7 @@
<name>MaxKellermann</name>
<uri>https://github.com/MaxKellermann</uri>
</author>
<content type="html">[TASK] Eliminate double serialization in ApcuBackend</content>
<content type="html"></content>
</entry>
<entry>
<id>tag:github.com,2008:Grit::Commit/66d3625281f47ef788f8663c0dbd050081d3fe74</id>
@ -269,6 +269,6 @@
<name>sypets</name>
<uri>https://github.com/sypets</uri>
</author>
<content type="html">[BUGFIX] Handle array access in LocalImageProcessor</content>
<content type="html"></content>
</entry>
</feed>