Aaron Parecki
9edc99ce3c
parse h-event location as an embedded h-card
3 years ago
Aaron Parecki
d2b0109d37
fix for missing author property
* looks through the full mf2 tree for step 7 of authorship https://github.com/indieweb/authorship/issues/2
* if no author h-card is found, falls back to returning the author URL without other data instead of missing author
closes #95
3 years ago
Aaron Parecki
2cf50a695e
check for null value first
closes #96
4 years ago
Aaron Parecki
aacac198a8
fix checking for empty post content
XRay now looks for images inside the HTML and does not consider those empty posts
4 years ago
Aaron Parecki
1213ee080d
include author for events
for https://github.com/aaronpk/Aperture/issues/56
4 years ago
Aaron Parecki
b0b2fc1ee8
support featured images from events
closes #92
4 years ago
Aaron Parecki
19126b5836
pass thru HTTP code and parse deleted pages
more consistently returns HTTP 410 now
4 years ago
sebsel
1e638e7fd0
fix a case where the removed h-card is the first item
The previous check removed a h-card, but this one still takes the first of the original array. Which means, in the case of `h-card+h-entry`, the h-card get’s removed, but then the if triggers and the `h-card` is selected.
5 years ago
Aaron Parecki
87b2cf10d8
add follow-of posts
replaces #78
5 years ago
Aaron Parecki
8043ba575f
improve authorship discovery
closes #79
5 years ago
Aaron Parecki
18dc92966b
recognize pattern of h-entry + h-card
* a single h-entry and h-card, where the h-entry has no URL, will result in a permalink page with that h-entry
* multiple h-entrys followed by an h-card is a feed
5 years ago
Aaron Parecki
470639f486
recognize h-event "content" in addition to "description"
5 years ago
Aaron Parecki
d3e36038b2
parse basic ActivityStreams objects
including from rel=alternate
5 years ago
Aaron Parecki
154b7e874a
check for a rel=alternate to existing parsed mf2 JSON and use that instead
5 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
5 years ago
Aaron Parecki
38d307de1c
implements post type discovery
returns a new property `post-type` next to `type`
closes #25
5 years ago
Aaron Parecki
e1600cc5bc
real fix for quotation-of
5 years ago
Aaron Parecki
c4da480866
quotation-of should always be a single value
5 years ago
Aaron Parecki
112b75b623
parse quotation-of from HTML as well
closes #73
5 years ago
Aaron Parecki
e2780ba0a0
when interpreting JSON, don't require `value` for html values
5 years ago
Aaron Parecki
417cc1b3cc
parse redirect uri for h-app
parse from both link tags and the u-redirect-uri property
5 years ago
Aaron Parecki
85c3a17934
whitespace cleanup
6 years ago
Aaron Parecki
4959ec15f2
remove duplicate url values
6 years ago
Aaron Parecki
c67dd9088d
bugfix
6 years ago
Aaron Parecki
aba067234c
add h-x-app vocabulary
closes #13
6 years ago
Aaron Parecki
2515f618c7
include featured image for h-entry
closes #51
6 years ago
Aaron Parecki
c376833f4c
fix for recipe parsing
6 years ago
Aaron Parecki
4d65b1ca1e
if removing the img results in empty content, put the name value back
closes #57
6 years ago
Aaron Parecki
66adfbe2f8
run name/content dedupe before munging HTML
fix for #53
6 years ago
Aaron Parecki
bdedef6e1e
adds a bunch of broken tests for #52
6 years ago
Aaron Parecki
b686349ded
remove duplicate code
use parseHTMLValue function for event description
6 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
6 years ago
Aaron Parecki
85b8a35212
normalize URLs when comparing
Treats `https://example.com ` and `https://example.com/ ` as equivalent when comparing URLs. Closes #33
6 years ago
Aaron Parecki
15743d411d
Find author when author is a property of the h-feed
closes #32
6 years ago
Aaron Parecki
05f7d9c86c
implement h-feed and other microformats feed parsing
6 years ago
Aaron Parecki
e8e63caba6
implements parsing Atom and RSS feeds
6 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
6 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
6 years ago
Aaron Parecki
d0de523746
add hackernews support
closes #40
6 years ago
Aaron Parecki
330bc9024d
fix parsing for hReview
thanks to the new backcompat in php-mf2 0.3.2
6 years ago
Aaron Parecki
78e3e16592
finishes the refactor!
7 years ago
Aaron Parecki
5221cf79e9
get rid of global functions
moves XRay classes to `p3k\XRay` namespace
7 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 )
7 years ago
Aaron Parecki
5f5392a7b8
deduplicate categories, and strip leading hashtags
7 years ago
Aaron Parecki
a1234f61e3
recognize h-card if it's the only object
closes #36
7 years ago
Aaron Parecki
c255df7421
add swarm-coins to h-entry
7 years ago
Aaron Parecki
5e60e13b5a
add h-recipe
closes #24
7 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
7 years ago
Aaron Parecki
2f9f80c4e6
remove unused function
7 years ago
Aaron Parecki
62697ee46b
strict type checking on properties
7 years ago