Skip to content
Snippets Groups Projects
Commit e51c2bca authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

move url_previews to MD as RST does my head in

parent 71a1bd53
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ As a first cut, let's do #2 and have the receiver hit the API to calculate its o ...@@ -56,6 +56,7 @@ As a first cut, let's do #2 and have the receiver hit the API to calculate its o
API API
--- ---
```
GET /_matrix/media/r0/preview_url?url=http://wherever.com GET /_matrix/media/r0/preview_url?url=http://wherever.com
200 OK 200 OK
{ {
...@@ -66,6 +67,7 @@ GET /_matrix/media/r0/preview_url?url=http://wherever.com ...@@ -66,6 +67,7 @@ GET /_matrix/media/r0/preview_url?url=http://wherever.com
"og:description" : "“Synapse 0.12 is out! Lots of polishing, performance & bugfixes: /sync API, /r0 prefix, fulltext search, 3PID invites https://t.co/5alhXLLEGP”" "og:description" : "“Synapse 0.12 is out! Lots of polishing, performance & bugfixes: /sync API, /r0 prefix, fulltext search, 3PID invites https://t.co/5alhXLLEGP”"
"og:site_name" : "Twitter" "og:site_name" : "Twitter"
} }
```
* Downloads the URL * Downloads the URL
* If HTML, just stores it in RAM and parses it for OG meta tags * If HTML, just stores it in RAM and parses it for OG meta tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment