| Commit message (Expand) | Author | Age | Files | Lines |
* | Do not wait for background updates to complete do expire URL cache. (#13657) | Patrick Cloke | 2022-08-30 | 1 | -4/+0 |
* | Inline URL preview documentation. (#13261) | Patrick Cloke | 2022-07-12 | 1 | -4/+58 |
* | Do not break URL previews if an image is unreachable. (#12950) | Patrick Cloke | 2022-06-06 | 1 | -6/+17 |
* | URL preview cache expiry logs: INFO -> DEBUG, text clarifications (#12720) | Andrew Morgan | 2022-05-12 | 1 | -9/+21 |
* | Ensure the type of URL attributes is always str when matching against preview... | Brendan Abolivier | 2022-03-31 | 1 | -2/+7 |
* | Clean-up logic for rebasing URLs during URL preview. (#12219) | Patrick Cloke | 2022-03-16 | 1 | -11/+12 |
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -1/+1 |
* | Fetch images when previewing Twitter URLs. (#11985) | AndrewRyanChama | 2022-02-22 | 1 | -1/+9 |
* | Implement a content type allow list for URL previews (#11936) | Denis Kasak | 2022-02-10 | 1 | -0/+8 |
* | Support rendering previews with data: URLs in them (#11767) | Patrick Cloke | 2022-01-24 | 1 | -58/+166 |
* | Fix preview of imgur and Tenor URLs. (#11669) | Philippe Daouadi | 2022-01-18 | 1 | -10/+25 |
* | Move HTML parsing to a separate file for URL previews. (#11566) | Patrick Cloke | 2021-12-13 | 1 | -375/+8 |
* | Add type hints to media repository storage module (#11311) | Patrick Cloke | 2021-11-12 | 1 | -4/+4 |
* | Fix URL preview errors when previewing XML documents. (#11196) | Patrick Cloke | 2021-10-27 | 1 | -3/+6 |
* | Ensure each charset is attempted only once during media preview. (#11089) | Patrick Cloke | 2021-10-14 | 1 | -6/+28 |
* | Attempt different character encodings when previewing a URL. (#11077) | Patrick Cloke | 2021-10-14 | 1 | -41/+39 |
* | Be more lenient when parsing the version for oEmbed responses. (#11065) | Patrick Cloke | 2021-10-13 | 1 | -1/+1 |
* | Autodiscover oEmbed endpoint from returned HTML (#10822) | Patrick Cloke | 2021-10-08 | 1 | -38/+74 |
* | Fix empty `url_cache_thumbnails/yyyy-mm-dd/` directories being left behind (#... | Sean Quah | 2021-09-29 | 1 | -31/+43 |
* | Avoid storing URL cache files in storage providers (#10911) | Sean Quah | 2021-09-27 | 1 | -1/+0 |
* | Use direct references for configuration variables (part 5). (#10897) | Patrick Cloke | 2021-09-24 | 1 | -5/+5 |
* | Add reactor to `SynapseRequest` and fix up types. (#10868) | Erik Johnston | 2021-09-24 | 1 | -2/+1 |
* | Include more information in oEmbed previews. (#10819) | Patrick Cloke | 2021-09-22 | 1 | -1/+1 |
* | Refactor oEmbed previews (#10814) | Patrick Cloke | 2021-09-21 | 1 | -142/+184 |
* | Add missing type hints to non-client REST servlets. (#10817) | Patrick Cloke | 2021-09-15 | 1 | -2/+3 |
* | Use attrs internally for the URL preview code & add documentation. (#10753) | Patrick Cloke | 2021-09-07 | 1 | -42/+79 |
* | Allow configuration of the oEmbed URLs. (#10714) | Patrick Cloke | 2021-08-31 | 1 | -142/+5 |
* | Support underscores (in addition to hyphens) for charset detection. (#10410) | sri-vidyut | 2021-07-27 | 1 | -2/+4 |
* | Add a return type to parse_string. (#10438) | Patrick Cloke | 2021-07-21 | 1 | -7/+3 |
* | Use inline type hints in `handlers/` and `rest/`. (#10382) | Jonathan de Jong | 2021-07-16 | 1 | -4/+4 |
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
* | Add type hints to expiring cache. (#9730) | Patrick Cloke | 2021-04-06 | 1 | -1/+1 |
* | Make it possible to use dmypy (#9692) | Erik Johnston | 2021-03-26 | 1 | -0/+2 |
* | Import HomeServer from the proper module. (#9665) | Patrick Cloke | 2021-03-23 | 1 | -1/+1 |
* | Fix additional type hints from Twisted 21.2.0. (#9591) | Patrick Cloke | 2021-03-12 | 1 | -1/+2 |
* | Use the proper Request in type hints. (#9515) | Patrick Cloke | 2021-03-01 | 1 | -1/+1 |
* | Add support for no_proxy and case insensitive env variables (#9372) | Tim Leung | 2021-02-26 | 1 | -2/+1 |
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -2/+1 |
* | Handle additional errors when previewing URLs. (#9333) | Patrick Cloke | 2021-02-08 | 1 | -19/+52 |
* | Try to recover from unknown encodings when previewing media. (#9164) | Patrick Cloke | 2021-01-26 | 1 | -10/+34 |
* | Add type hints to media rest resources. (#9093) | Patrick Cloke | 2021-01-15 | 1 | -29/+48 |
* | Do not raise a 500 exception when previewing empty media. (#8883) | Patrick Cloke | 2020-12-07 | 1 | -1/+5 |
* | Add type annotations to SimpleHttpClient (#8372) | Richard van der Hoff | 2020-09-24 | 1 | -4/+10 |
* | Use slots in attrs classes where possible (#8296) | Patrick Cloke | 2020-09-14 | 1 | -1/+1 |
* | Remove unnecessary maybeDeferred calls (#8044) | Patrick Cloke | 2020-08-07 | 1 | -2/+1 |
* | Reduce unnecessary whitespace in JSON. (#7372) | David Vo | 2020-08-07 | 1 | -2/+2 |
* | Rename database classes to make some sense (#8033) | Erik Johnston | 2020-08-05 | 1 | -1/+1 |
* | Convert the remaining media repo code to async / await. (#7947) | Patrick Cloke | 2020-07-27 | 1 | -5/+5 |
* | Support oEmbed for media previews. (#7920) | Patrick Cloke | 2020-07-27 | 1 | -45/+220 |
* | Merge different Resource implementation classes (#7732) | Erik Johnston | 2020-07-03 | 1 | -6/+4 |
* | Support running multiple media repos. (#7706) | Erik Johnston | 2020-06-17 | 1 | -3/+15 |
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari MannsÄker | 2020-06-16 | 1 | -6/+3 |
* | Reduce logging verbosity of URL cache cleanup. (#7295) | Michael Kaye | 2020-04-22 | 1 | -2/+7 |
* | Allow specifying the value of Accept-Language header for URL previews (#7265) | Andrew Morgan | 2020-04-15 | 1 | -2/+6 |
* | Convert some of the media REST code to async/await (#7110) | Patrick Cloke | 2020-03-20 | 1 | -20/+17 |
* | Fixup synapse.rest to pass mypy (#6732) | Erik Johnston | 2020-01-20 | 1 | -3/+4 |
* | Move background update handling out of store | Erik Johnston | 2019-12-05 | 1 | -1/+1 |
* | Fix startup error when http proxy is defined. (#6421) | Richard van der Hoff | 2019-11-26 | 1 | -2/+2 |
* | Clean up newline quote marks around the codebase (#6362) | Andrew Morgan | 2019-11-21 | 1 | -1/+1 |
* | Merge pull request #6334 from matrix-org/rav/url_preview_limit_title_2 | Richard van der Hoff | 2019-11-05 | 1 | -1/+2 |
|\ |
|
| * | Fix exception when OpenGraph tag values are ints | Richard van der Hoff | 2019-11-05 | 1 | -1/+2 |
* | | Merge branch 'develop' into rav/url_preview_limit_title | Richard van der Hoff | 2019-11-05 | 1 | -13/+17 |
|\ \
| |/
|/| |
|
| * | Support for routing outbound HTTP requests via a proxy (#6239) | Richard van der Hoff | 2019-11-01 | 1 | -0/+2 |
| * | Remove usage of deprecated logger.warn method from codebase (#6271) | Andrew Morgan | 2019-10-31 | 1 | -8/+8 |
| * | Address codestyle concerns | Michael Kaye | 2019-10-24 | 1 | -1/+3 |
| * | Delay printf until logging is required. | Michael Kaye | 2019-10-24 | 1 | -6/+6 |
* | | Apply suggestions from code review | Richard van der Hoff | 2019-11-05 | 1 | -1/+1 |
* | | Strip overlong OpenGraph data from url preview | Richard van der Hoff | 2019-11-05 | 1 | -1/+19 |
|/ |
|
* | Fix store_url_cache using bytes | Erik Johnston | 2019-10-10 | 1 | -2/+2 |
* | Remove double return statements (#5962) | Andrew Morgan | 2019-09-03 | 1 | -1/+0 |
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -18/+16 |
* | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 1 | -1/+1 |
* | Fix media repo breaking (#5593) | Amber Brown | 2019-07-02 | 1 | -0/+1 |
* | Make the http server handle coroutine-making REST servlets (#5475) | Amber Brown | 2019-06-29 | 1 | -12/+6 |
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -113/+102 |
* | URL preview blacklisting fixes (#5155) | Andrew Morgan | 2019-05-10 | 1 | -0/+10 |
* | Fix IP URL previews on Python 3 (#4215) | Amber Brown | 2018-12-22 | 1 | -2/+12 |
* | Fix Content-Disposition in media repository (#4176) | Amber Brown | 2018-11-15 | 1 | -27/+3 |
* | Use <meta> tags to discover the per-page encoding of html previews (#4183) | Amber Brown | 2018-11-15 | 1 | -9/+22 |
* | Fix URL preview bugs (type error when loading cache from db, content-type inc... | Amber Brown | 2018-11-08 | 1 | -6/+16 |
* | Fix a number of flake8 errors | Richard van der Hoff | 2018-10-24 | 1 | -1/+1 |
* | Fix bug where we raised StopIteration in a generator | Erik Johnston | 2018-10-17 | 1 | -2/+5 |
* | Fix some instances of ExpiringCache not expiring cache items | Erik Johnston | 2018-09-21 | 1 | -1/+0 |
* | Port rest/ to Python 3 (#3823) | Amber Brown | 2018-09-12 | 1 | -5/+5 |
* | Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678) | Amber Brown | 2018-08-10 | 1 | -1/+1 |
* | Fix some looping_call calls which were broken in #3604 | Richard van der Hoff | 2018-07-26 | 1 | -1/+1 |
* | Wrap a number of things that run in the background | Richard van der Hoff | 2018-07-25 | 1 | -1/+7 |
* | Use parse_{int,str} and assert from http.servlet | Krombel | 2018-07-13 | 1 | -2/+3 |
* | run isort | Amber Brown | 2018-07-09 | 1 | -14/+11 |
* | Attempt to be more performant on PyPy (#3462) | Amber Brown | 2018-06-28 | 1 | -1/+2 |
* | py3-ize url preview | Adrian Tschira | 2018-05-19 | 1 | -3/+5 |
* | Set Server header in SynapseRequest | Richard van der Hoff | 2018-05-10 | 1 | -1/+0 |
* | Remove redundant request_handler decorator | Richard van der Hoff | 2018-05-10 | 1 | -2/+3 |
* | Use run_in_background in preference to preserve_fn | Richard van der Hoff | 2018-04-27 | 1 | -2/+3 |
* | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2018-03-19 | 1 | -1/+1 |
|\ |
|
| * | Replace ujson with simplejson | Erik Johnston | 2018-03-15 | 1 | -1/+1 |
* | | Handle url_previews with no content-type | Richard van der Hoff | 2018-02-02 | 1 | -21/+34 |
* | | Change _generate_thumbnails to take media_type | Erik Johnston | 2018-01-16 | 1 | -2/+4 |
* | | Move setting of file_id up to caller | Erik Johnston | 2018-01-16 | 1 | -2/+4 |
* | | Make PreviewUrlResource use MediaStorage | Erik Johnston | 2018-01-09 | 1 | -7/+11 |
|/ |
|
* | Merge pull request #2697 from matrix-org/rav/fix_urlcache_index_error | Richard van der Hoff | 2017-11-27 | 1 | -3/+7 |
|\ |
|
| * | Check database in has_completed_background_updates | Richard van der Hoff | 2017-11-22 | 1 | -1/+1 |
| * | Fix error on sqlite 3.7 | Richard van der Hoff | 2017-11-21 | 1 | -3/+7 |
* | | Fix OPTIONS on preview_url | Richard van der Hoff | 2017-11-23 | 1 | -1/+5 |
|/ |
|
* | Bit more logging | Richard van der Hoff | 2017-11-10 | 1 | -0/+2 |
* | Cache failures in url_preview handler | Richard van der Hoff | 2017-11-10 | 1 | -41/+45 |
* | Ignore noscript tags when generating URL previews | Maxime Vaillancourt | 2017-10-25 | 1 | -1/+8 |
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -3/+3 |
* | Don't reuse source but instead copy from primary media store to backup | Erik Johnston | 2017-10-13 | 1 | -2/+1 |
* | Fix up thumbnailing function | Erik Johnston | 2017-10-13 | 1 | -4/+4 |
* | Fix comments | Erik Johnston | 2017-10-12 | 1 | -0/+3 |
* | Don't close file prematurely | Erik Johnston | 2017-10-12 | 1 | -2/+2 |
* | Copy everything to backup | Erik Johnston | 2017-10-12 | 1 | -1/+6 |
* | Only log if we've removed media | Erik Johnston | 2017-09-28 | 1 | -2/+4 |
* | Clear up expired url cache every 10s | Erik Johnston | 2017-09-28 | 1 | -1/+1 |
* | Actually assign result to variable | Erik Johnston | 2017-09-28 | 1 | -1/+1 |
* | Fix typo in url cache expiry timer | Erik Johnston | 2017-09-28 | 1 | -1/+1 |
* | Change expires column to expires_ts | Erik Johnston | 2017-09-28 | 1 | -2/+2 |
* | Delete expired url cache data | Erik Johnston | 2017-09-28 | 1 | -2/+88 |
* | Store URL cache preview downloads seperately | Erik Johnston | 2017-06-23 | 1 | -3/+4 |
* | actually trim oversize og:description meta | Matthew Hodgson | 2017-05-22 | 1 | -0/+2 |
* | Fix crash in url preview when html tag has no text | Marcin Bachry | 2016-12-14 | 1 | -1/+4 |
* | preview_url_resource: Ellipsis must be in unicode string | Johannes Löthberg | 2016-12-01 | 1 | -1/+1 |
* | Add None check to _iterate_over_text | Erik Johnston | 2016-08-17 | 1 | -1/+1 |
* | Flake8 | Erik Johnston | 2016-08-16 | 1 | -4/+1 |
* | Fix up preview URL API. Add tests. | Erik Johnston | 2016-08-16 | 1 | -157/+196 |
* | Don't include html comments in description | Erik Johnston | 2016-08-05 | 1 | -1/+2 |
* | Typo | Erik Johnston | 2016-08-04 | 1 | -1/+1 |
* | Test summarization | Erik Johnston | 2016-08-04 | 1 | -52/+54 |
* | Don't infer paragrahs from newlines | Erik Johnston | 2016-08-02 | 1 | -2/+1 |
* | Comment on why we clone | Erik Johnston | 2016-08-02 | 1 | -0/+1 |
* | Spelling. | Erik Johnston | 2016-08-02 | 1 | -3/+3 |
* | Make it actually compile | Erik Johnston | 2016-08-02 | 1 | -1/+1 |
* | Change the way we summarize URLs | Erik Johnston | 2016-08-02 | 1 | -11/+67 |
* | Line lengths | Erik Johnston | 2016-06-15 | 1 | -3/+3 |
* | Handle floats as img widths | Erik Johnston | 2016-06-15 | 1 | -1/+1 |
* | Handle og props with not content | Erik Johnston | 2016-06-15 | 1 | -1/+2 |
* | Clean up the blacklist/whitelist handling. | Mark Haines | 2016-05-16 | 1 | -33/+30 |
* | Report per request metrics for all of the things using request_handler | Mark Haines | 2016-04-28 | 1 | -1/+1 |
* | Add self.media_repo to PreviewUrlResource | Erik Johnston | 2016-04-19 | 1 | -0/+1 |
* | _make_dirs was moved to MediaRepository | Erik Johnston | 2016-04-19 | 1 | -1/+1 |
* | Add store to PreviewUrlResource | Erik Johnston | 2016-04-19 | 1 | -0/+1 |
* | Reorder imports | Erik Johnston | 2016-04-19 | 1 | -7/+8 |
* | Split out BaseMediaResource into MediaRepository | Erik Johnston | 2016-04-19 | 1 | -7/+13 |
* | explicitly pass in the charset from Content-Type to lxml to fix cyrillic woes... | Matthew Hodgson | 2016-04-15 | 1 | -6/+18 |
* | fix cyrillic URL previews by hardcoding all page decoding to UTF-8 for now, r... | Matthew Hodgson | 2016-04-15 | 1 | -16/+8 |
* | fix urlparse import thinko breaking tiny URLs | Matthew Hodgson | 2016-04-14 | 1 | -5/+5 |
* | Sanitize the optional dependencies for spider API | Erik Johnston | 2016-04-13 | 1 | -22/+2 |
* | PEP8 | Erik Johnston | 2016-04-11 | 1 | -1/+0 |
* | fix typos and needless try/except from PR review | Matthew Hodgson | 2016-04-11 | 1 | -143/+140 |
* | actually throw meaningful errors | Matthew Hodgson | 2016-04-08 | 1 | -9/+24 |
* | Fix pep8 warning | Mark Haines | 2016-04-08 | 1 | -3/+4 |
* | more PR feedback | Matthew Hodgson | 2016-04-08 | 1 | -4/+8 |
* | Add url_preview_enabled config option to turn on/off preview_url endpoint. de... | Matthew Hodgson | 2016-04-08 | 1 | -17/+58 |
* | report image size (bytewise) in OG meta | Matthew Hodgson | 2016-04-03 | 1 | -0/+2 |
* | char encoding | Matthew Hodgson | 2016-04-03 | 1 | -0/+1 |
* | pep8 | Matthew Hodgson | 2016-04-03 | 1 | -54/+73 |
* | fix etag typing error. fix timestamp typing error | Matthew Hodgson | 2016-04-03 | 1 | -2/+2 |
* | rebase all image URLs | Matthew Hodgson | 2016-04-03 | 1 | -4/+4 |
* | remove stale todo | Matthew Hodgson | 2016-04-03 | 1 | -3/+0 |
* | Ensure only one download for a given URL is active at a time | Matthew Hodgson | 2016-04-03 | 1 | -1/+18 |
* | add a persistent cache of URL lookups, and fix up the in-memory one to work | Matthew Hodgson | 2016-04-03 | 1 | -10/+54 |
* | support gzip compression, and don't pass through error msgs | Matthew Hodgson | 2016-04-02 | 1 | -2/+3 |
* | handle missing dimensions without crashing | Matthew Hodgson | 2016-04-02 | 1 | -4/+13 |
* | make meta comparisons case insensitive | Matthew Hodgson | 2016-04-02 | 1 | -2/+2 |
* | refactor calc_og; spider image URLs; fix xpath; add a (broken) expiringcache;... | Matthew Hodgson | 2016-04-02 | 1 | -81/+121 |
* | fix assorted redirect, unicode and screenscraping bugs | Matthew Hodgson | 2016-04-01 | 1 | -78/+96 |
* | handle spidered relative images correctly | Matthew Hodgson | 2016-03-31 | 1 | -2/+12 |
* | prevent choking on invalid utf-8, and handle image thumbnailing smarter | Matthew Hodgson | 2016-03-31 | 1 | -5/+18 |
* | synthesise basig OG metadata from pages lacking it | Matthew Hodgson | 2016-03-31 | 1 | -0/+47 |
* | handle requests with missing content-length headers (e.g. YouTube) | Matthew Hodgson | 2016-03-31 | 1 | -2/+2 |
* | fix bugs | Matthew Hodgson | 2016-03-29 | 1 | -5/+6 |
* | debug | Matthew Hodgson | 2016-03-29 | 1 | -3/+2 |
* | make it work | Matthew Hodgson | 2016-03-29 | 1 | -55/+76 |
* | make it build | Matthew Hodgson | 2016-03-29 | 1 | -8/+9 |
* | initial WIP of a tentative preview_url endpoint - incomplete, untested, exper... | Matthew Hodgson | 2016-01-24 | 1 | -0/+164 |