Aaron Parecki
470639f486
recognize h-event "content" in addition to "description"
7 years ago
Aaron Parecki
d3e36038b2
parse basic ActivityStreams objects
including from rel=alternate
7 years ago
Aaron Parecki
154b7e874a
check for a rel=alternate to existing parsed mf2 JSON and use that instead
7 years ago
Aaron Parecki
7621bca4a6
adds new "source-format" property to indicate how XRay found the data
* mf2+html
* mf2+json
* feed+json
* xml
* instagram/facebook/github/xkcd
7 years ago
Aaron Parecki
38d307de1c
implements post type discovery
returns a new property `post-type` next to `type`
closes #25
7 years ago
Aaron Parecki
e1600cc5bc
real fix for quotation-of
7 years ago
Aaron Parecki
c4da480866
quotation-of should always be a single value
7 years ago
Aaron Parecki
112b75b623
parse quotation-of from HTML as well
closes #73
7 years ago
Aaron Parecki
e2780ba0a0
when interpreting JSON, don't require `value` for html values
7 years ago
Aaron Parecki
417cc1b3cc
parse redirect uri for h-app
parse from both link tags and the u-redirect-uri property
7 years ago
Aaron Parecki
85c3a17934
whitespace cleanup
8 years ago
Aaron Parecki
4959ec15f2
remove duplicate url values
8 years ago
Aaron Parecki
c67dd9088d
bugfix
8 years ago
Aaron Parecki
aba067234c
add h-x-app vocabulary
closes #13
8 years ago
Aaron Parecki
2515f618c7
include featured image for h-entry
closes #51
8 years ago
Aaron Parecki
c376833f4c
fix for recipe parsing
8 years ago
Aaron Parecki
4d65b1ca1e
if removing the img results in empty content, put the name value back
closes #57
8 years ago
Aaron Parecki
66adfbe2f8
run name/content dedupe before munging HTML
fix for #53
8 years ago
Aaron Parecki
bdedef6e1e
adds a bunch of broken tests for #52
8 years ago
Aaron Parecki
b686349ded
remove duplicate code
use parseHTMLValue function for event description
8 years ago
Aaron Parecki
7872429f0c
prioritize url on the same domain
if an item has multiple URL values, return the one that is on the same domain
8 years ago
Aaron Parecki
85b8a35212
normalize URLs when comparing
Treats `https://example.com ` and `https://example.com/ ` as equivalent when comparing URLs. Closes #33
8 years ago
Aaron Parecki
15743d411d
Find author when author is a property of the h-feed
closes #32
8 years ago
Aaron Parecki
05f7d9c86c
implement h-feed and other microformats feed parsing
8 years ago
Aaron Parecki
e8e63caba6
implements parsing Atom and RSS feeds
8 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
8 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
8 years ago
Aaron Parecki
d0de523746
add hackernews support
closes #40
8 years ago
Aaron Parecki
330bc9024d
fix parsing for hReview
thanks to the new backcompat in php-mf2 0.3.2
8 years ago
Aaron Parecki
78e3e16592
finishes the refactor!
9 years ago
Aaron Parecki
5221cf79e9
get rid of global functions
moves XRay classes to `p3k\XRay` namespace
9 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 )
9 years ago
Aaron Parecki
5f5392a7b8
deduplicate categories, and strip leading hashtags
9 years ago
Aaron Parecki
a1234f61e3
recognize h-card if it's the only object
closes #36
9 years ago
Aaron Parecki
c255df7421
add swarm-coins to h-entry
9 years ago
Aaron Parecki
5e60e13b5a
add h-recipe
closes #24
9 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
9 years ago
Aaron Parecki
2f9f80c4e6
remove unused function
9 years ago
Aaron Parecki
62697ee46b
strict type checking on properties
9 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
10 years ago
Aaron Parecki
5672004535
remove url param since it was not used
10 years ago
Aaron Parecki
4a82561536
fix for h-event parsing
10 years ago
Aaron Parecki
138cddd158
also return audio property
10 years ago
Aaron Parecki
6de9be2567
parse h-event
closes #9
10 years ago
Aaron Parecki
ee5e48e1ef
if there is exactly one item and it's an h-entry, use that
10 years ago
Aaron Parecki
9054b0947c
specific error when there is no content at the URL
10 years ago
Aaron Parecki
1924d1000e
add log messages to debug which case a URL is hitting
10 years ago
Aaron Parecki
162d2f5ef8
add tests for feeds, catch case when a permalink has other h-entrys
10 years ago
Aaron Parecki
c4b80506da
support parsing posted HTML
10 years ago
Aaron Parecki
8d1489bb72
fix for target param. include bookmark-of property
10 years ago