Commit Graph

47 Commits (410add1c30d230e86c22de4e54bb9999de980b16)

Author SHA1 Message Date
feld b6af80f769 Revert "Merge branch 'fix/ogp-title' into 'develop'"
5 years ago
rinpatch f30a3241d2 Deps: Update auto_linker
5 years ago
Egor Kislitsyn a12f8e13c8 Improve <title> fallback; Add a test
5 years ago
Mark Felder 7363a0ea8a Revert "Only run Floki if title is missing from the map"
5 years ago
Mark Felder 97d2b1a45a Only run Floki if title is missing from the map
5 years ago
Mark Felder 097fdf6a5d Attempt to use <title> from HTML as a fallback
5 years ago
Egor Kislitsyn bf22ed5fbd Update `auto_linker` dependency
5 years ago
rinpatch 92213fb87c Replace Mix.env with Pleroma.Config.get(:env)
5 years ago
Sergey Suprunenko 1690be991e Replace missing non-nullable Card attributes with empty strings
5 years ago
William Pitcock 0da1233e8e rich media: suppress link previews if post is marked as sensitive
5 years ago
William Pitcock 57d11ac9db activitypub: move post rich media fetching to job queue
5 years ago
Roman Chvanikov 4615e56219 Add `with_body: true` to requests relying on `max_body: val`
6 years ago
William Pitcock c62220c500 rich media: helpers: only crawl Create activities
6 years ago
William Pitcock b3bf523c09 rich media: use optimized Object.normalize()
6 years ago
Haelwenn (lanodan) Monnier a3a9cec483
[Credo] fix Credo.Check.Readability.AliasOrder
6 years ago
William Pitcock 19afd9f81f http: rework connection timeouts to match hackney docs, enforce 1 second max TCP connection timeout
6 years ago
William Pitcock b7aa1ea9e6 rich media: helpers: rework validate_page_url()
6 years ago
William Pitcock 9f3cb38012 helpers: use AutoLinker to validate URIs as well as the other tests
6 years ago
William Pitcock d38d537bee rich media: don't crawl bogus URIs
6 years ago
William Pitcock 45e57dd187 rich media: tighten fetching timeouts and size limits
6 years ago
Haelwenn (lanodan) Monnier 6a6a5b3251
de-group alias/es
6 years ago
William Pitcock d83dbd9070 rich media: parser: reject any data which cannot be explicitly encoded into JSON
6 years ago
lain b19b4f8537 Remove default value for rich media.
6 years ago
lambda 44913c1019 Merge branch 'bugfix/rich-media-non-unicode' into 'develop'
6 years ago
William Pitcock 46dba03098 rich media: parser: only try to validate strings, not numbers (OEmbed)
6 years ago
William Pitcock dafb6f0b5e rich media: parser: reject OGP fields we cannot safely process
6 years ago
rinpatch 7057891db6 Make rich media support toggleable
6 years ago
href 5ea0397e2d
Fix 4aff4efa typos
6 years ago
href 4aff4efa8d
Use multiple hackney pools
6 years ago
William Pitcock 61d6715714 rich media: oembed: return data in the same format as the other parsers
6 years ago
William Pitcock ddb5545202 rich media: kill some testsuite noise
6 years ago
William Pitcock 0f11254a06 rich media: parser: add some basic sanity checks on the returned data with pattern matching
6 years ago
William Pitcock 83b7062634 rich media: parser: cache negatives
6 years ago
William Pitcock 8fb16e9f0f rich media: parser: add copyright header
6 years ago
William Pitcock ebeabdcc72 rich media: helpers: clean up unused aliases
6 years ago
William Pitcock 8e42251e06 rich media: add helpers module, use instead of MastodonAPI module
6 years ago
William Pitcock 6096846f5f API: kill /api/rich_media/parse endpoint
6 years ago
William Pitcock de42646634 rich media: add try/rescue to ensure we catch parsing and fetching failures
6 years ago
William Pitcock 8f2f471e94 rich media: gracefully handle fetching nil URIs
6 years ago
Maxim Filippov b8a77c5d70 Add OEmbed parser
6 years ago
Maxim Filippov 1f851a0723 Add Twitter Card parser
6 years ago
rinpatch a2d7f0e0e9 Remove :commit since a tuple is already returned
6 years ago
William Pitcock 487c00d36d rich media: disable cachex in test mode
6 years ago
William Pitcock 0964c207eb rich media: use cachex to avoid flooding remote servers
6 years ago
Maxim Filippov 48e81d3d40 Add RichMediaController and tests
6 years ago
Maxim Filippov 917d48d09b Better variable name
6 years ago
Maxim Filippov 2aab4e03c3 Add OGP parser
6 years ago