Aaron Parecki
05f7d9c86c
implement h-feed and other microformats feed parsing
7 years ago
Aaron Parecki
e8e63caba6
implements parsing Atom and RSS feeds
7 years ago
Aaron Parecki
07d1df2cef
convert rsvp value to lowercase
according to http://microformats.org/wiki/h-entry the rsvp values should be interpreted case-insensitive
7 years ago
Aaron Parecki
d50231142a
adds support for parsing checkins
checkin data is returned embedded like author data rather than in the `refs` object
closes #35
7 years ago
Aaron Parecki
d0de523746
add hackernews support
closes #40
7 years ago
Aaron Parecki
330bc9024d
fix parsing for hReview
thanks to the new backcompat in php-mf2 0.3.2
7 years ago
Aaron Parecki
78e3e16592
finishes the refactor!
8 years ago
Aaron Parecki
5221cf79e9
get rid of global functions
moves XRay classes to `p3k\XRay` namespace
8 years ago
Aaron Parecki
35669270e3
reorganize XRay classes, use p3k-http lib
* removes the HTTP classes from this project and uses p3k-http library instead
* reorganizes the XRay classes into a psr-4 compatible folder
* moves controller autoload into -dev in preparation for turning this into a library (#17 )
8 years ago
Aaron Parecki
5f5392a7b8
deduplicate categories, and strip leading hashtags
8 years ago
Aaron Parecki
a1234f61e3
recognize h-card if it's the only object
closes #36
8 years ago
Aaron Parecki
c255df7421
add swarm-coins to h-entry
8 years ago
Aaron Parecki
5e60e13b5a
add h-recipe
closes #24
8 years ago
Aaron Parecki
5d8fb4e13c
support h-review and h-product vocab
* closes #23
* major refactor of the methods for extracting properties to consolidate the logic
* hReview parsing is incomplete due to issues with the php-mf2 backcompat parsing. see https://github.com/indieweb/php-mf2/issues/107
8 years ago
Aaron Parecki
2f9f80c4e6
remove unused function
8 years ago
Aaron Parecki
62697ee46b
strict type checking on properties
8 years ago
Aaron Parecki
1f6de10aba
add tests for validating URL fields
* fields that should be URLs will now be omitted if the value was not a URL, such as when the value is `javascript:alert()`
* makes Mf2 class slightly more self-contained by duplicating the URL helper functions into it
* fixes tests to not cache responses in memcache
9 years ago
Aaron Parecki
5672004535
remove url param since it was not used
9 years ago
Aaron Parecki
4a82561536
fix for h-event parsing
9 years ago
Aaron Parecki
138cddd158
also return audio property
9 years ago
Aaron Parecki
6de9be2567
parse h-event
closes #9
9 years ago
Aaron Parecki
ee5e48e1ef
if there is exactly one item and it's an h-entry, use that
9 years ago
Aaron Parecki
9054b0947c
specific error when there is no content at the URL
9 years ago
Aaron Parecki
1924d1000e
add log messages to debug which case a URL is hitting
9 years ago
Aaron Parecki
162d2f5ef8
add tests for feeds, catch case when a permalink has other h-entrys
9 years ago
Aaron Parecki
c4b80506da
support parsing posted HTML
9 years ago
Aaron Parecki
8d1489bb72
fix for target param. include bookmark-of property
9 years ago
Aaron Parecki
075f78a6c1
parse h-entry even if it's not the first objet
9 years ago
Aaron Parecki
d7672df96c
allow ul/li/ol
9 years ago
Aaron Parecki
66a9b1cc9e
sanitize HTML in the entry
allow only a basic set of tags, and remove any non-mf2 classes
closes #2
9 years ago
Aaron Parecki
241594dcf5
sanitize HTML
sanitize the HTML returned in the content property. allows a common set of HTML tags.
for #2
9 years ago
Aaron Parecki
b9c9a6bddd
fix for author parsing
9 years ago
Aaron Parecki
ac6d86c0db
includes nested h-cite and other objects
if a property such as `in-reply-to` is an h-cite, the URL is still returned as the `in-reply-to` value, and the h-cite object is available in a different part of the response.
closes #6
9 years ago
Aaron Parecki
2924f35e0d
fix tests for new HTTPStream
9 years ago
Aaron Parecki
82931e46bc
switch to using file_get_contents for appengine
9 years ago
Aaron Parecki
7fafb51e92
add todo note for feeds
9 years ago
Aaron Parecki
7075254d56
add / to URL if it doesn't have a path
9 years ago
Aaron Parecki
0d96cb2832
also return matching url for h-cards
9 years ago
Aaron Parecki
fff43444f5
also return categories
9 years ago
Aaron Parecki
69223cad1d
return matching author url
9 years ago
Aaron Parecki
e9bc4bf450
rename to X-Ray
9 years ago
Aaron Parecki
0b35b74636
implement authorship discovery
* extracts mf2 post contents from pages
* implements authorship discovery to find author info for the URL
9 years ago
Aaron Parecki
9eecc31571
parse content and name from the entry
9 years ago
Aaron Parecki
13bb06d2c9
stub mf2 parsing
9 years ago