jackjamieson2 / yarns-microsub-server

Yarns is a Microsub server that runs as a plugin on your WordPress site.
GNU General Public License v2.0
20 stars 4 forks source link

Return empty 'items' array if timeline is empty #102

Open jackjamieson2 opened 4 years ago

jackjamieson2 commented 4 years ago

see https://chat.indieweb.org/dev/2020-02-10#t1581322516315600

When the timeline is empty, Yarns returns an empty string. This causes an error (though not a crash) in Indigenous.

Would make more sense to return an empty 'items' array, and this seems to be what the spec says