rinpatch
9f29930440
fetcher: move local object checking into a reusable function
5 years ago
lain
e835cd97f6
Containment: Add a catch-all clause to contain_origin.
5 years ago
Ariadne Conill
5b60d82592
object containment: handle all cases where ID is invalid (missing, nil, non-string)
5 years ago
rinpatch
32afa07995
Fetcher: fix local check returning unwrapped object
...
This resulted in error messages about failed refetches being logged.
5 years ago
rinpatch
54746c6c26
Object Fetcher: set cache after reinjecting
...
Probably fixes the issue hj had, where polls would have different
counters between endpoints.
5 years ago
stwf
2ab072f949
object fetcher error handling
5 years ago
Ariadne Conill
44e64af5e7
object: containment: simplify the pattern match for OStatus testsuite hack
5 years ago
Ariadne Conill
e99fdfc32d
object: containment: only allow OStatus references in test suite environment
5 years ago
Ariadne Conill
3c785b85a6
object: fetcher: fix up formatting
5 years ago
Ariadne Conill
7295a05cee
object: containment: also allow OStatus object IDs through when comparing origins
5 years ago
Ariadne Conill
a177f22e02
object: fetcher: improve error reporting
5 years ago
Ariadne Conill
bf2107743f
object: containment: don't try to contain ostatus objects
5 years ago
Ariadne Conill
6f110fc04c
object fetcher: fix up error handling
5 years ago
Ariadne Conill
48059c03c9
fix up some tests
5 years ago
Ariadne Conill
d379b48769
kill almost all of the OStatus module
5 years ago
Maksim Pechnikov
d4ed3a35b8
Merge branch 'develop' into test/activity_pub/transmogrifier.ex
5 years ago
rinpatch
5028b7b578
Fix credo issues
5 years ago
rinpatch
c096dd86e5
Do not refetch local objects
5 years ago
rinpatch
eb87a86b5b
Preserve internal fields when reinjecting
5 years ago
rinpatch
e3f902b3a1
Set updated_at even if the object stayed the same
5 years ago
rinpatch
7ef575d11e
Initial poll refresh support
...
Implement refreshing the object with an interval and call the function
when getting the poll.
5 years ago
Maksim Pechnikov
fcf604fa43
added tests
5 years ago
Maksim Pechnikov
8dc6a6b210
fix /inbox for Relay
5 years ago
rinpatch
196cad46f3
Resolve merge conflicts
5 years ago
rinpatch
c3ecaea64d
Apply suggestion to lib/pleroma/object/fetcher.ex
5 years ago
Ariadne Conill
399acd4c42
fetcher: sign object fetches if configured
5 years ago
Ariadne Conill
739bbe0d3b
security: detect object containment violations at the IR level
...
It is more efficient to check for object containment violations at the IR
level instead of in the protocol handlers. OStatus containment is especially
a tricky situation, as the containment rules don't match those of IR and
ActivityPub.
Accordingly, we just always do a final containment check at the IR level
before the object is added to the IR object graph.
5 years ago
Haelwenn (lanodan) Monnier
2592934480
Object.Fetcher: Keep the with-do block as per kaniini proposition
5 years ago
Haelwenn (lanodan) Monnier
e1c08a67d6
Object.Fetcher: Fallback to OStatus only if AP actually fails
5 years ago
Haelwenn (lanodan) Monnier
40d0a198e2
Object.Fetcher: Handle error on Containment.contain_origin/2
5 years ago
rinpatch
e8fa477793
Refactor Follows/Followers counter syncronization
...
- Actually sync counters in the database instead of info cache (which got
overriden after user update was finished anyway)
- Add following count field to user info
- Set hide_followers/hide_follows for remote users based on http status
codes for the first collection page
5 years ago
feld
93a0eeab16
Add license/copyright to all project files
5 years ago
Ivan Tashkinov
5b7b1040b3
[ #161 ] Limited replies depth on incoming federation in order to prevent memory leaks on recursive replies fetching.
5 years ago
Egor
58a094b605
Add copyright info to containment.ex
5 years ago
Egor Kislitsyn
30e54fd7e2
Handle HTTP 404 response
5 years ago
Egor Kislitsyn
afae3ada22
Handle HTTP "410 Gone" response
5 years ago
William Pitcock
9bec891eb4
kill @httpoison
5 years ago
William Pitcock
73df9d690d
object: fetcher: add support for reinjecting pruned objects
5 years ago
William Pitcock
e71ddf23ba
containment: remove pointless moduledoc line
5 years ago
Haelwenn (lanodan) Monnier
69a5074893
Remove H1 in @moduledoc
5 years ago
rinpatch
d21d921def
Replace Object.normalize(activity.data[object] with Object.normalize(acitivty) to benefit from preloading
6 years ago
rinpatch
35ac672b8d
Remove containment tests from transmogrifier and fix thread visibility solver
6 years ago
rinpatch
e7c3c36766
Update functions in object fetcher for tesla and set up a proper mock for tests
6 years ago
rinpatch
627e5a0a49
Merge branch 'develop' into feature/database-compaction
6 years ago
William Pitcock
fed9b5404c
object: rework Object.normalize() a bit to support transparent fetching
6 years ago
William Pitcock
f85949cc69
object: factor out fetching functions into Pleroma.Object.Fetcher module
6 years ago
William Pitcock
e8caecb5c7
object: move object containment out of transmogrifier into it's own module
6 years ago