ecc277a1f0
fix: always create activities if local
2024-06-07 23:21:41 +02:00
a53c93c1c5
feat: dont store activities unless necessary
2024-06-07 23:16:51 +02:00
87d0d7b6d2
fix: delete duplicated jobs
2024-06-07 23:16:39 +02:00
746ba4bbee
fix: make sure activity comes from httpsign author
2024-06-07 23:16:22 +02:00
b7a8a6004f
chore: likes dont need to record generating activity
2024-06-07 23:15:57 +02:00
06fcf09a5f
chore: refactor addressing: expand inside methods
2024-06-07 23:14:49 +02:00
827fb287db
feat(apb): mentioning method for jut .to() and .bto()
2024-06-07 23:13:18 +02:00
e6b9120bbf
fix: more appropriate http signature errors
...
if we cant fetch from db its our fault (500), if we cant fetch your
actor its your fault (4xx)
2024-06-07 19:05:37 +02:00
1814d7b187
fix: process updates for lemmy pages too
2024-06-07 17:11:34 +02:00
8a93a7368e
fix: oops undo of undo was my mistake
2024-06-07 15:18:36 +02:00
bb52a03bcf
fix: oof maybe fix for postgres? temporary
2024-06-07 07:26:08 +02:00
b61a6ded3b
fix: ...
2024-06-07 07:15:47 +02:00
d000b57ff1
fix: use small integer like in db
2024-06-07 07:12:48 +02:00
315e6bea4a
fix: ouch need to use this...
2024-06-07 07:08:00 +02:00
3883f2c31f
chore: imports
2024-06-07 06:59:38 +02:00
9fc8a364dd
fix: use timestamp instead of date_time
...
apparently date_time is TIMESTAMPTZ on postgres, not TIMESTAMP (aka
DateTime<Utc>)...
2024-06-07 06:58:35 +02:00
8805622a3b
fix: dont create fulltext index
...
broken on postgres? will add it later with a migration
2024-06-07 06:37:41 +02:00
43aea48816
feat: proxy should work for anything, more options
2024-06-07 06:20:25 +02:00
8284130890
feat(uriproxy)!: renamed fns, added expand fn
2024-06-07 06:15:38 +02:00
28889eb338
feat: config session duration, token refreshes
...
allow refreshing sessions before they expire
2024-06-07 02:22:43 +02:00
c19b8e0f5b
fix: context document ids and next
2024-06-06 23:53:28 +02:00
ddb86718d1
fix: show unprocessable activities ids
2024-06-06 22:53:25 +02:00
da1f269850
fix: where am i supposed to place it????????
2024-06-06 21:08:09 +02:00
d93e4f091b
fix: http signatures errors are 500, not 401
...
if user provides an http signature and we fail to verify, bail out! if
our db didn't give us the local user its unlikely that we will be able
to serve anything anyway, just give up
2024-06-06 21:04:04 +02:00
6b24db86f2
fix: hmmm cors layer must be first?
2024-06-06 20:51:45 +02:00
15e9118ed2
chore: removed deprecated constructors
2024-06-06 20:43:27 +02:00
5cfd16ea35
feat: added audience field
...
so that we can see where lemmy posts are coming from
2024-06-06 20:43:03 +02:00
56110ea917
fix: aaaa too spammyy
2024-06-06 20:27:39 +02:00
ff570d0d87
fix: this is caught inside AP::object
2024-06-06 20:24:10 +02:00
f249237dc5
fix: better type check for normalizing AP document
2024-06-06 19:57:32 +02:00
9e196b3180
fix: lemmy's objects are PAGEs, process them too
2024-06-06 19:40:18 +02:00
ec063da763
fix: log fetches
2024-06-06 19:20:16 +02:00
1bb8df0ac5
fix: pass transaction to expand_addressing too
2024-06-06 19:04:39 +02:00
f6d30b3bec
fix: outbound->delivery, local->outbound
...
also stop discarding duplicated deliveries, ouchhhh
2024-06-06 19:04:08 +02:00
0e779c3096
fix: likedByMe doesnt come as string in join
2024-06-06 18:54:56 +02:00
1213947495
fix!: eeehh need to rebuild db anyway coz sqlite
2024-06-06 18:48:21 +02:00
485724701a
fix: no unique index on job activity, skip dupes
...
rather than preventing dupes from being inserted (which breaks
processing local activities that require delivering) skip them as soon
as they get acquired
2024-06-06 18:36:30 +02:00
f3d28c9371
fix: fetch user which liked
...
fixes lemmy sending us remote likes
2024-06-06 18:20:43 +02:00
e63433b77b
fix: context is now under /objects/{id}/context
...
just like /objects/{id}/replies, makes easier composing urls, and also
more correct: context is not something we serve, but instead some
reference associated to objects
2024-06-06 16:41:39 +02:00
b17060df3d
fix: if we get Creates for objects already fetched
2024-06-06 16:32:52 +02:00
a6015a32ed
fix: maybe get context properly again?
2024-06-06 15:54:19 +02:00
1ce89aa6f9
feat: fetch accepts ConnectionTrait, better tx use
...
basically nothing wants a transaction anymore, so that quick stuff can
pass a DatabaseConnection and be done, while longer stuff can start a
transaction and provide that. i think this will solve deadlocks with
transactions in sqlite?
2024-06-06 07:10:23 +02:00
45bbc34dba
fix: use transaction
2024-06-06 06:51:32 +02:00
3c1aa4909e
feat: postgres driver
2024-06-06 05:13:54 +02:00
053414824a
fix: retry some times before dropping acquired job
2024-06-06 04:36:16 +02:00
c6d4f713ac
feat: configurable job expiration
...
defaults to 30 days
2024-06-06 04:27:49 +02:00
3123c8c1e0
feat: transactions!!
...
quite ugly because i have to pass it everywhere as argument but should
work i think, and also transactions now!!
2024-06-06 04:15:27 +02:00
797837f2a1
fix: announces processing
...
basically dont fetch every time, check if we have it already before
2024-06-06 03:34:29 +02:00
90e4454d3e
fix: log activity id for failed jobs
...
way easier to debug, also allows to select them back
2024-06-06 03:19:50 +02:00
6df108254a
fix: url with trailing slash
...
may help with verification?
2024-06-06 03:15:56 +02:00
f42849ffb0
fix: log which target fails in addressing
2024-06-06 02:48:01 +02:00
782c729b4c
fix: oops inbound which fails processing is not ok
2024-06-06 02:46:24 +02:00
a3decfea95
fix: print what's getting started
2024-06-06 02:33:32 +02:00
93666cea97
fix(migrations): indexes get dropped with tables
2024-06-06 02:29:13 +02:00
bbcc46d0ee
fix(cli): traits come from core again
2024-06-06 02:21:01 +02:00
acb9a9add5
feat: added jobs table
...
replaces deliveries
2024-06-06 02:20:43 +02:00
52f1238052
chore: traits are back in core
...
worker is just a worker, everything else is upub
2024-06-06 02:16:50 +02:00
0c1160b42f
chore!: HUGE REFACTOR
...
not even sure stuff will stay this way but phewwwwww this was time
consuming asffff
2024-06-01 05:21:57 +02:00
e7e9584783
chore(httpsign): moved httpsign into standalone crate
2024-05-31 21:31:09 +02:00
78bc514012
chore(apb): moved jsonld under apb as feature
2024-05-31 21:29:51 +02:00
f56e808bc6
fix: move cors layer under trace layer
2024-05-31 19:08:36 +02:00
3dfb432b0f
fix: oops apparently valid status codes end at 999
2024-05-31 19:08:16 +02:00
fffb562ddb
fix: classify 4xx as failure, move trace layer up
2024-05-31 18:46:31 +02:00
0097a0533a
chore: merge branch 'dev' of alemi/upub into dev
2024-05-31 16:58:22 +02:00
6ea6d1742e
fix: maybe trace layer info span will help?
2024-05-31 16:55:47 +02:00
6129973b13
fix: gts uses a path but its not real???
2024-05-31 15:56:25 +02:00
5a57fd69b9
fix: remove excessive instruments, check actor
...
before we were checking only for server match, now check whole uid match
on inbox activities
2024-05-31 15:55:38 +02:00
b0f47de278
fix: sharkey wants trailing slash too
2024-05-31 15:23:18 +02:00
c6628973ca
fix: better errors for debug getter
2024-05-31 15:20:49 +02:00
876cf19327
chore: instrument inbox/outbox
...
this is where side effects happen, so better keep them under control
also trying out tracing, i should redo how i trace stuff in upub...
2024-05-31 14:43:48 +02:00
5b592874cb
chore: BIG refactor into smaller crates
...
hopefully this makes lsp more responsive? because it wont need to
recompile everything every time, but idk really
2024-05-31 04:07:39 +02:00