brentsimmons
brentsimmons

Say you’re writing a feed reader that supports h-feed.

Say you identify each feed in your system by URL. (What else would you use?)

Then say you come across a page with two embedded h-feeds. What do you do? How do you identify them in your system?

|
Embed
Progress spinner
lilyball
lilyball

@brentsimmons I'm not familiar with how h-feed works, but maybe you could append a URL fragment with the name of the feed? Of course, if both feeds have the same name (!) you'd still have problems, but I suppose you could try and disambiguate by munging the duplicate names somehow.

|
Embed
Progress spinner
In reply to
brentsimmons
brentsimmons

@eridius There’s no name, but there might be a div id. I’ll go with that.

|
Embed
Progress spinner
aaronpk
aaronpk

@brentsimmons Here's the current recommendation: indieweb.org/h-feed

tl;dr: use only the first h-feed unless there is a fragment identifier on the second

fwiw I haven't actually encountered this case in the wild yet when I was writing all my h-feed consuming code

|
Embed
Progress spinner
brentsimmons
brentsimmons

@aaronpk Thank you — that helps!

|
Embed
Progress spinner
jsorge
jsorge

@aaronpk @brentsimmons Thank you! Why would anyone put more than one feed on a page?

|
Embed
Progress spinner
aaronpk
aaronpk

I don't think they do, but gotta cover all the cases when you're writing code!

|
Embed
Progress spinner