summary refs log tree commit diff
path: root/synapse/rest/media/v1/preview_url_resource.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-1/+1
* Fix media repo breaking (#5593)Amber Brown2019-07-021-0/+1
* Make the http server handle coroutine-making REST servlets (#5475)Amber Brown2019-06-291-12/+6
* Run Black. (#5482)Amber Brown2019-06-201-113/+102
* URL preview blacklisting fixes (#5155)Andrew Morgan2019-05-101-0/+10
* Fix IP URL previews on Python 3 (#4215)Amber Brown2018-12-221-2/+12
* Fix Content-Disposition in media repository (#4176)Amber Brown2018-11-151-27/+3
* Use <meta> tags to discover the per-page encoding of html previews (#4183)Amber Brown2018-11-151-9/+22
* Fix URL preview bugs (type error when loading cache from db, content-type inc...Amber Brown2018-11-081-6/+16
* Fix a number of flake8 errorsRichard van der Hoff2018-10-241-1/+1
* Fix bug where we raised StopIteration in a generatorErik Johnston2018-10-171-2/+5
* Fix some instances of ExpiringCache not expiring cache itemsErik Johnston2018-09-211-1/+0
* Port rest/ to Python 3 (#3823)Amber Brown2018-09-121-5/+5
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
* Fix some looping_call calls which were broken in #3604Richard van der Hoff2018-07-261-1/+1
* Wrap a number of things that run in the backgroundRichard van der Hoff2018-07-251-1/+7
* Use parse_{int,str} and assert from http.servletKrombel2018-07-131-2/+3
* run isortAmber Brown2018-07-091-14/+11
* Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-1/+2
* py3-ize url previewAdrian Tschira2018-05-191-3/+5
* Set Server header in SynapseRequestRichard van der Hoff2018-05-101-1/+0
* Remove redundant request_handler decoratorRichard van der Hoff2018-05-101-2/+3
* Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-2/+3
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2018-03-191-1/+1
|\
| * Replace ujson with simplejsonErik Johnston2018-03-151-1/+1
* | Handle url_previews with no content-typeRichard van der Hoff2018-02-021-21/+34
* | Change _generate_thumbnails to take media_typeErik Johnston2018-01-161-2/+4
* | Move setting of file_id up to callerErik Johnston2018-01-161-2/+4
* | Make PreviewUrlResource use MediaStorageErik Johnston2018-01-091-7/+11
|/
* Merge pull request #2697 from matrix-org/rav/fix_urlcache_index_errorRichard van der Hoff2017-11-271-3/+7
|\
| * Check database in has_completed_background_updatesRichard van der Hoff2017-11-221-1/+1
| * Fix error on sqlite 3.7Richard van der Hoff2017-11-211-3/+7
* | Fix OPTIONS on preview_urlRichard van der Hoff2017-11-231-1/+5
|/
* Bit more loggingRichard van der Hoff2017-11-101-0/+2
* Cache failures in url_preview handlerRichard van der Hoff2017-11-101-41/+45
* Ignore noscript tags when generating URL previewsMaxime Vaillancourt2017-10-251-1/+8
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-3/+3
* Don't reuse source but instead copy from primary media store to backupErik Johnston2017-10-131-2/+1
* Fix up thumbnailing functionErik Johnston2017-10-131-4/+4
* Fix commentsErik Johnston2017-10-121-0/+3
* Don't close file prematurelyErik Johnston2017-10-121-2/+2
* Copy everything to backupErik Johnston2017-10-121-1/+6
* Only log if we've removed mediaErik Johnston2017-09-281-2/+4
* Clear up expired url cache every 10sErik Johnston2017-09-281-1/+1
* Actually assign result to variableErik Johnston2017-09-281-1/+1
* Fix typo in url cache expiry timerErik Johnston2017-09-281-1/+1
* Change expires column to expires_tsErik Johnston2017-09-281-2/+2
* Delete expired url cache dataErik Johnston2017-09-281-2/+88
* Store URL cache preview downloads seperatelyErik Johnston2017-06-231-3/+4
* actually trim oversize og:description metaMatthew Hodgson2017-05-221-0/+2
* Fix crash in url preview when html tag has no textMarcin Bachry2016-12-141-1/+4
* preview_url_resource: Ellipsis must be in unicode stringJohannes Löthberg2016-12-011-1/+1
* Add None check to _iterate_over_textErik Johnston2016-08-171-1/+1
* Flake8Erik Johnston2016-08-161-4/+1
* Fix up preview URL API. Add tests.Erik Johnston2016-08-161-157/+196
* Don't include html comments in descriptionErik Johnston2016-08-051-1/+2
* TypoErik Johnston2016-08-041-1/+1
* Test summarizationErik Johnston2016-08-041-52/+54
* Don't infer paragrahs from newlinesErik Johnston2016-08-021-2/+1
* Comment on why we cloneErik Johnston2016-08-021-0/+1
* Spelling.Erik Johnston2016-08-021-3/+3
* Make it actually compileErik Johnston2016-08-021-1/+1
* Change the way we summarize URLsErik Johnston2016-08-021-11/+67
* Line lengthsErik Johnston2016-06-151-3/+3
* Handle floats as img widthsErik Johnston2016-06-151-1/+1
* Handle og props with not contentErik Johnston2016-06-151-1/+2
* Clean up the blacklist/whitelist handling.Mark Haines2016-05-161-33/+30
* Report per request metrics for all of the things using request_handlerMark Haines2016-04-281-1/+1
* Add self.media_repo to PreviewUrlResourceErik Johnston2016-04-191-0/+1
* _make_dirs was moved to MediaRepositoryErik Johnston2016-04-191-1/+1
* Add store to PreviewUrlResourceErik Johnston2016-04-191-0/+1
* Reorder importsErik Johnston2016-04-191-7/+8
* Split out BaseMediaResource into MediaRepositoryErik Johnston2016-04-191-7/+13
* explicitly pass in the charset from Content-Type to lxml to fix cyrillic woes...Matthew Hodgson2016-04-151-6/+18
* fix cyrillic URL previews by hardcoding all page decoding to UTF-8 for now, r...Matthew Hodgson2016-04-151-16/+8
* fix urlparse import thinko breaking tiny URLsMatthew Hodgson2016-04-141-5/+5
* Sanitize the optional dependencies for spider APIErik Johnston2016-04-131-22/+2
* PEP8Erik Johnston2016-04-111-1/+0
* fix typos and needless try/except from PR reviewMatthew Hodgson2016-04-111-143/+140
* actually throw meaningful errorsMatthew Hodgson2016-04-081-9/+24
* Fix pep8 warningMark Haines2016-04-081-3/+4
* more PR feedbackMatthew Hodgson2016-04-081-4/+8
* Add url_preview_enabled config option to turn on/off preview_url endpoint. de...Matthew Hodgson2016-04-081-17/+58
* report image size (bytewise) in OG metaMatthew Hodgson2016-04-031-0/+2
* char encodingMatthew Hodgson2016-04-031-0/+1
* pep8Matthew Hodgson2016-04-031-54/+73
* fix etag typing error. fix timestamp typing errorMatthew Hodgson2016-04-031-2/+2
* rebase all image URLsMatthew Hodgson2016-04-031-4/+4
* remove stale todoMatthew Hodgson2016-04-031-3/+0
* Ensure only one download for a given URL is active at a timeMatthew Hodgson2016-04-031-1/+18
* add a persistent cache of URL lookups, and fix up the in-memory one to workMatthew Hodgson2016-04-031-10/+54
* support gzip compression, and don't pass through error msgsMatthew Hodgson2016-04-021-2/+3
* handle missing dimensions without crashingMatthew Hodgson2016-04-021-4/+13
* make meta comparisons case insensitiveMatthew Hodgson2016-04-021-2/+2
* refactor calc_og; spider image URLs; fix xpath; add a (broken) expiringcache;...Matthew Hodgson2016-04-021-81/+121
* fix assorted redirect, unicode and screenscraping bugsMatthew Hodgson2016-04-011-78/+96
* handle spidered relative images correctlyMatthew Hodgson2016-03-311-2/+12
* prevent choking on invalid utf-8, and handle image thumbnailing smarterMatthew Hodgson2016-03-311-5/+18
* synthesise basig OG metadata from pages lacking itMatthew Hodgson2016-03-311-0/+47
* handle requests with missing content-length headers (e.g. YouTube)Matthew Hodgson2016-03-311-2/+2
* fix bugsMatthew Hodgson2016-03-291-5/+6
* debugMatthew Hodgson2016-03-291-3/+2
* make it workMatthew Hodgson2016-03-291-55/+76
* make it buildMatthew Hodgson2016-03-291-8/+9
* initial WIP of a tentative preview_url endpoint - incomplete, untested, exper...Matthew Hodgson2016-01-241-0/+164