Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mastodon to RSS: No author information, title garbled #177

Closed
bekopharm opened this issue Dec 18, 2019 · 3 comments
Closed

Mastodon to RSS: No author information, title garbled #177

bekopharm opened this issue Dec 18, 2019 · 3 comments

Comments

@bekopharm
Copy link

When I subscribe to a Mastodon to RSS feed posts look like this:

image

This is the parsed XML item:

<item>
   <title>&lt;p&gt;RubyFrontierDocs – es geht voran&lt;/p&gt;&lt;p&gt;Inspiriert durch das gestrige »Fahrrad für den Geist«-Video habe ich...</title>
   <link>https://mastodon.social/@kantel/103329305147285605</link>
   <description><![CDATA[<p>RubyFrontierDocs – es geht voran</p><p>Inspiriert durch das gestrige »Fahrrad für den Geist«-Video habe ich noch ein wenig an meiner Implementierung der <a href="https://mastodon.social/tags/RubyFrontierDocs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RubyFrontierDocs</span></a> gebastelt und erste Ergebnisse erzielt. <a href="http://blog.schockwellenreiter.de/2019/12/2019121801.html" rel="nofollow noopener" target="_blank"><span class="invisible">http://</span><span class="ellipsis">blog.schockwellenreiter.de/201</span><span class="invisible">9/12/2019121801.html</span></a></p>
<p>
<a class="link" href="https://mastodon.social/@kantel/103329305147285605">
<img class="u-photo" src="https://f2.tchncs.de/social.tchncs.de/media_attachments/files/005/557/949/original/3384e3e514f01780.jpeg" alt="" />
</a>
</p>
<p>
<a class="link" href="http://blog.schockwellenreiter.de/2019/12/2019121801.html">
<span class="name">RubyFrontierDocs – es geht voran – Schockwellenreiter</span>
</a>
</p>
<a class="p-category" href="https://social.tchncs.de/tags/RubyFrontierDocs">RubyFrontierDocs</a>]]></description>
   <guid isPermaLink="true">https://mastodon.social/@kantel/103329305147285605</guid>
   <category>RubyFrontierDocs</category>
   <pubDate>Wed, 18 Dec 2019 14:41:11 +0000</pubDate>
</item>

The same post looks fine with Mastodon to ATOM instead:

<entry>
   <author>
      <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
      <uri>https://mastodon.social/@kantel</uri>
      <name>Jörg Kantel</name>
   </author>
   <activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
   <id>https://mastodon.social/@kantel/103329305147285605</id>
   <title>RubyFrontierDocs – es geht voranInspiriert durch das gestrige »Fahrrad für den Geist«-Video habe ich...</title>
   <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
         <p>RubyFrontierDocs – es geht voran</p>
         <p>Inspiriert durch das gestrige »Fahrrad für den Geist«-Video habe ich noch ein wenig an meiner Implementierung der <a href="https://mastodon.social/tags/RubyFrontierDocs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RubyFrontierDocs</span></a> gebastelt und erste Ergebnisse erzielt. <a href="http://blog.schockwellenreiter.de/2019/12/2019121801.html" rel="nofollow noopener" target="_blank"><span class="invisible">http://</span><span class="ellipsis">blog.schockwellenreiter.de/201</span><span class="invisible">9/12/2019121801.html</span></a></p>
         <p>
            <a class="link" href="https://mastodon.social/@kantel/103329305147285605">
            <img class="u-photo" src="https://f2.tchncs.de/social.tchncs.de/media_attachments/files/005/557/949/original/3384e3e514f01780.jpeg" alt="" />
            </a>
         </p>
         <p>
            <a class="link" href="http://blog.schockwellenreiter.de/2019/12/2019121801.html">
            <span class="name">RubyFrontierDocs – es geht voran – Schockwellenreiter</span>
            </a>
         </p>
         <a class="p-category" href="https://social.tchncs.de/tags/RubyFrontierDocs">RubyFrontierDocs</a>
      </div>
   </content>
   <link rel="alternate" type="text/html" href="https://mastodon.social/@kantel/103329305147285605" />
   <link rel="ostatus:conversation" href="https://mastodon.social/@kantel/103329305147285605" />
   <link rel="ostatus:attention" href="https://social.tchncs.de/tags/RubyFrontierDocs" />
   <link rel="mentioned" href="https://social.tchncs.de/tags/RubyFrontierDocs" />
   <a href="https://social.tchncs.de/tags/RubyFrontierDocs">RubyFrontierDocs</a>
   <link rel="ostatus:attention" href="http://blog.schockwellenreiter.de/2019/12/2019121801.html" />
   <link rel="mentioned" href="http://blog.schockwellenreiter.de/2019/12/2019121801.html" />
   <a href="http://blog.schockwellenreiter.de/2019/12/2019121801.html">RubyFrontierDocs – es geht voran – Schockwellenreiter</a>
   <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
   <published>2019-12-18T14:41:11+00:00</published>
   <updated>2019-12-18T14:41:11+00:00</updated>
   <link rel="self" type="application/atom+xml" href="https://mastodon.social/@kantel/103329305147285605" />
   <link rel="enclosure" href="https://f2.tchncs.de/social.tchncs.de/media_attachments/files/005/557/949/original/3384e3e514f01780.jpeg" type="image/jpeg" />
</entry>

It's even worse with Reshares or Replies.

Works like a charm with Twitter to RSS as well so I assume it's some converting issue with Granary.

@snarfed
Copy link
Owner

snarfed commented Dec 18, 2019

thanks for the report, and sorry for the trouble! very good point, these should be fixed. any interest in taking a look? should be pretty isolated to rss.py and/or mastodon.py. feel free to look at the docs to help ramp up!

@bekopharm
Copy link
Author

I'd like to but I can hardly read python (which is a real shame, oc) :(

@snarfed
Copy link
Owner

snarfed commented Dec 24, 2019

ok, both title and author look better now. thanks again for filing.

@snarfed snarfed closed this as completed Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants