Aaron Parecki
abd37849ac
attempt to fix appengine warnings
vor 9 Jahren
Aaron Parecki
76c45a9e19
only use memcache if class exists
vor 9 Jahren
Aaron Parecki
262d9a66fa
cache the HTTP response
vor 9 Jahren
Aaron Parecki
ee5e48e1ef
if there is exactly one item and it's an h-entry, use that
vor 9 Jahren
Aaron Parecki
9054b0947c
specific error when there is no content at the URL
vor 9 Jahren
Aaron Parecki
1924d1000e
add log messages to debug which case a URL is hitting
vor 9 Jahren
Aaron Parecki
2d52b982cb
fix test data
vor 9 Jahren
Aaron Parecki
3d29776ae7
add a form to the home page to allow passing in HTML
vor 9 Jahren
Aaron Parecki
b7f49a7958
fix should follow redirects check
vor 9 Jahren
Aaron Parecki
8dc0caa4d0
use effective URL after following redirects when comparing URLs
vor 9 Jahren
Aaron Parecki
162d2f5ef8
add tests for feeds, catch case when a permalink has other h-entrys
vor 9 Jahren
Aaron Parecki
e3000f8c06
better blacklist for google URLs
vor 9 Jahren
Aaron Parecki
c4b80506da
support parsing posted HTML
vor 9 Jahren
Aaron Parecki
8d1489bb72
fix for target param. include bookmark-of property
vor 9 Jahren
Aaron Parecki
d1c6dc9268
add a test for rsvp
vor 9 Jahren
Aaron Parecki
4cb548fdfc
add test files illustrating a few different ways feeds (lists of posts) can appear
vor 9 Jahren
Aaron Parecki
075f78a6c1
parse h-entry even if it's not the first objet
vor 9 Jahren
Aaron Parecki
a202aa9c9a
tests for sanitizing and escaping HTML
use fork of php-mf2 until https://github.com/indieweb/php-mf2/pull/83 is merged
vor 9 Jahren
Aaron Parecki
d7672df96c
allow ul/li/ol
vor 9 Jahren
Aaron Parecki
e3ff109b37
restrict matching mf2 classes to only lowercase names
see http://microformats.org/wiki/microformats2-parsing-issues#ignore_u-camelCase_properties for background
vor 9 Jahren
Aaron Parecki
66a9b1cc9e
sanitize HTML in the entry
allow only a basic set of tags, and remove any non-mf2 classes
closes #2
vor 9 Jahren
Aaron Parecki
241594dcf5
sanitize HTML
sanitize the HTML returned in the content property. allows a common set of HTML tags.
for #2
vor 9 Jahren
Aaron Parecki
814df605b6
add query string param to pretty-print JSON output
vor 9 Jahren
Aaron Parecki
b9c9a6bddd
fix for author parsing
vor 9 Jahren
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
vor 9 Jahren
Aaron Parecki
097e999768
return type=unknown instead of error=no_content
vor 9 Jahren
Aaron Parecki
ed88b4881b
use file_get_contents only for appengine URLs
vor 9 Jahren
Aaron Parecki
d853a52eb4
disable the timeout test for now
vor 9 Jahren
Aaron Parecki
e09ee58d8b
sometimes it returns "request failed"
file_get_contents is dumb. I hope this isn't a permanent solution.
vor 9 Jahren
Aaron Parecki
2924f35e0d
fix tests for new HTTPStream
vor 9 Jahren
Aaron Parecki
82931e46bc
switch to using file_get_contents for appengine
vor 9 Jahren
Aaron Parecki
7b955b53f2
don't follow redirects on appengine URLs
see https://cloud.google.com/appengine/docs/php/urlfetch/
vor 9 Jahren
Aaron Parecki
8a51a9fbe7
bump for deploy
vor 9 Jahren
Aaron Parecki
147e9f991f
point to keyfile
vor 9 Jahren
Aaron Parecki
f69da25ff2
deploy via travis
vor 9 Jahren
Aaron Parecki
7fafb51e92
add todo note for feeds
vor 9 Jahren
Aaron Parecki
7075254d56
add / to URL if it doesn't have a path
vor 9 Jahren
Aaron Parecki
7b54172b87
add slash if no path is given
vor 9 Jahren
Aaron Parecki
0d96cb2832
also return matching url for h-cards
vor 9 Jahren
Aaron Parecki
fff43444f5
also return categories
vor 9 Jahren
Aaron Parecki
69223cad1d
return matching author url
vor 9 Jahren
Aaron Parecki
59398b6685
link to github repo
vor 9 Jahren
Aaron Parecki
38b337939f
enable home page form
vor 9 Jahren
Aaron Parecki
e9bc4bf450
rename to X-Ray
vor 9 Jahren
Aaron Parecki
0b35b74636
implement authorship discovery
* extracts mf2 post contents from pages
* implements authorship discovery to find author info for the URL
vor 9 Jahren
Aaron Parecki
9eecc31571
parse content and name from the entry
vor 9 Jahren
Aaron Parecki
13bb06d2c9
stub mf2 parsing
vor 9 Jahren
Aaron Parecki
85c3ce7b33
starting the parse function, with tests
vor 9 Jahren
Aaron Parecki
987d615cd4
fix escaped quotes in readme
vor 9 Jahren
Aaron Parecki
c2f4469c7e
begin API documentation
vor 9 Jahren