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

missing information from jsonfeed #80

Open
jackjamieson2 opened this issue Jun 19, 2019 · 9 comments
Open

missing information from jsonfeed #80

jackjamieson2 opened this issue Jun 19, 2019 · 9 comments

Comments

@jackjamieson2
Copy link
Owner

e.g. when I parse manton.org/feed.json, the feed author information is not added to items

Looks like this is because the author information is not stored as an h-card like with other feeds

It returns with the author information as properties at the beginning of the feed.

{
  "type": "jsonfeed",
  "name": "Manton Reece",
  "url": "https:\\/\\/www.manton.org\\/feed.json",
  "photo": "https:\\/\\/micro.blog\\/manton\\/avatar.jpg",
  "items": [
...
}

Yarns is expecting an author property as an h-card

"author":{
  "name": "Manton Reece",
  "url": "https:\\/\\/www.manton.org\\/feed.json",
  "photo": "https:\\/\\/micro.blog\\/manton\\/avatar.jpg",
}

Two ways to address this:

  1. I can add a bit to Yarns to convert this

  2. This could be addressed in Parse-This -- @dshanske, what do you think? I'm happy to handle it in Yarns but I expect this would be useful in other cases of Parse-This as well.

I'm going to implement it in Yarns itself in the meantime since it's pretty simple and I want jsonfeeds to work asap

@jackjamieson2 jackjamieson2 changed the title missing author information from jsonfeed missing information from jsonfeed Jun 19, 2019
@jackjamieson2
Copy link
Owner Author

Similarly, items parsed from jsonfeeds are missing a type='entry' property

@dshanske
Copy link
Collaborator

@jackjamieson2 Will fix this. It should be on the library side

@jackjamieson2
Copy link
Owner Author

jackjamieson2 commented Jun 19, 2019 via email

@dshanske
Copy link
Collaborator

@jackjamieson2 If you look at the JSONfeed you cited, and all micro.blog jsonfeeds, no author property exists. I'll fix the other problem.

@dshanske
Copy link
Collaborator

Not every feed has an author provided. Not sure what Microsub expects if there isn't one provided.

@jackjamieson2
Copy link
Owner Author

Ah, I thought that might have been a jsonfeed convention, but I didn't check the spec.

Nonetheless, my inclination would be to interpret the feed name url and photo properties as belonging to the author. At least for Micro.blog feeds since that seems to be the typical use. Without that, jsonfeeds from Micro.blog are rendered in Monocle (and presumably other clients, though I didn't check yet) as having no author.

Beyond that, it looks like there's discussion of using a _source property to handle feed names etc. apart from authors indieweb/microsub#13

I'm heading to sleep now so I'll check properly in the morning, but it looks like this is implemented in Monocle (in views/timeline/author-card.php)

@jackjamieson2
Copy link
Owner Author

Just tried adding the feed name etc. to _source - It does not display in Monocle. (Looking at Monocle's source).

Screen Shot 2019-06-20 at 11 23 05 AM

Screen Shot 2019-06-20 at 11 23 20 AM

@dshanske
Copy link
Collaborator

I would rather start providing a source property for everything than the alternative

@jackjamieson2
Copy link
Owner Author

jackjamieson2 commented Jun 20, 2019 via email

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