Maksim
139b196bc0
[ #1150 ] fixed parser TwitterCard
5 years ago
Ariadne Conill
b93498eb52
constants: add as_public constant and use it everywhere
5 years ago
Ariadne Conill
d3bdb8e704
rich media: parser: splice the given URL into the result
5 years ago
rinpatch
3368174785
Fix rich media parser failing when no TTL can be found by image TTL
...
setters
5 years ago
Sachin Joshi
de9906ad56
change the structure of image ttl parsar
5 years ago
Sachin Joshi
18234cc44e
add the rich media ttl based on image exp time
5 years ago
Alex S
f4447d82b8
parsers configurable
5 years ago
feld
93a0eeab16
Add license/copyright to all project files
5 years ago
Maksim Pechnikov
5c0f646cef
fix validate_page_url
5 years ago
Maksim Pechnikov
4ad15ad2a9
add ignore hosts and TLDs for rich_media
5 years ago
Maksim Pechnikov
0276cf5a02
fix validate_url for private ip
5 years ago
lain
0e415921cd
Rich Media Parser: Do not return just a title if nothing else is there.
5 years ago
lain
58c4d5312b
Revert "Revert "Merge branch 'fix/ogp-title' into 'develop'""
...
This reverts commit b6af80f769
.
5 years ago
feld
b6af80f769
Revert "Merge branch 'fix/ogp-title' into 'develop'"
...
This reverts merge request !1277
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"
...
This reverts commit 97d2b1a45a
.
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)
...
Mix.env/0 is not availible in release environments such as distillery or
elixir's built-in releases.
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.
...
Setting it to true will actually override a 'false' set before.
6 years ago
lambda
44913c1019
Merge branch 'bugfix/rich-media-non-unicode' into 'develop'
...
rich media non-unicode bugfix
See merge request pleroma/pleroma!749
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
...
* federation (ap, salmon)
* media (rich media, media proxy)
* upload (uploader proxy)
Each "part" will stop fighting others ones -- a huge federation outbound
could before make the media proxy fail to checkout a connection in time.
splitted media and uploaded media for the good reason than an upload
pool will have all connections to the same host (the uploader upstream).
it also has a longer default retention period for connections.
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