Minds / minds

mirror of https://gitlab.com/minds/minds
https://www.minds.com
Other
718 stars 203 forks source link

(?): Add Microformats2 markup to blog feeds #44

Closed dissolve closed 4 years ago

dissolve commented 7 years ago

Most of the independant social media (Friendica, Mastodon, Known, Micro.blog, GnuSocial, Hubzilla, etc) all publish their html with microformats2 markup so that its easily processed by others.

http://microformats.org/wiki/microformats2 There are a number of parsers listed on that page as well

But for the common social web understanding of them, its best to look at http://indieweb.org/h-feed and http://indieweb.org/h-entry

markharding commented 7 years ago

Can you explain a bit more on how you envision this implementation?

dissolve commented 7 years ago

Since the html is rendered mostly by javascript it does make things a bit more complex. The most useful would be to add it as additional, very minimal html in a noscript tag. For example, a single entry could be done like this ` <noscript class="h-entry">

<a class="u-url" href="https://www.minds.com/newsfeed/723853542418292736"&gt; <time class="dt-publish" datetime="2017-06-20T06:55:33-04:00">Jun 20, 2017, 6:55:33 AM </time> </a> <div class="e-content p-name"> We just launched a few small design changes to channels, groups and the newsfeed. Let us know what you think. </div>

<div "p-author h-card"> <img class="u-photo" src="https://d3ae0shxev0cb7.cloudfront.net//icon/100000000000000063/medium/1491496785"&gt; <a "p-name u-url" href="/mark">Mark</a> </div> </noscript> ` This makes posts parsable by other social web sites, Known and Micro.blog as well as a number of smaller sites use this as their default method of communicating between sites. Its a very simple addition to do for a large step toward federating with other independent social media.

markharding commented 7 years ago

Thanks! I'm guessing we might also run into issues because, right now, we have no server side rending.. so such scraping might be an issue. Are there no standards such as endpoints where we could return json? I think that would be a cleaner solution to accomplish this.

dissolve commented 7 years ago

Nothing that is widely deployed sadly. There is some work being done on JF2 which is a json equivalent of microformats, but its not used much yet.

dissolve commented 7 years ago

What is the level of interest in federating with other software? I am always interested to see more software joining the mix.

ottman commented 7 years ago

We are definitely interested because the principle makes sense but feel it hasn't been implemented effectively to really spread.

On Jun 23, 2017 11:00 PM, "Ben Roberts" notifications@github.com wrote:

What is the level of interest in federating with other software? I am always interested to see more software joining the mix.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Minds/minds/issues/44#issuecomment-310809508, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1XyKf2uVG7tqiDQ0zU7_VjLQRZabiRks5sHHvmgaJpZM4Nnpbc .