Commit graph

674 commits

Author SHA1 Message Date
ee8ab38570
fix: add updated field on objects and set it 2024-05-02 15:15:16 +02:00
30219c7fe6
chore(apb): move publshed and updated closer
i forgot that there's an updated field because it was too far
2024-05-02 15:12:57 +02:00
8b75e2be84
fix: dispatch activities with @context 2024-05-02 15:12:36 +02:00
fc206cc715
fix(web): oops don't send back accept to self 2024-05-02 14:51:48 +02:00
23c9a0a106
fix: some impls dont include to in folreqs
i mean, it's obviously addressed to the target actor of this activity,
but it would cost nothing to put it in the `to` field... i do! added
special cases to make sure follow/accept/reject activities are at least
addressed to target actor
2024-05-02 14:36:56 +02:00
34ebd9628b
feat(web): proper posts parsing!!! 2024-05-02 14:21:42 +02:00
4d773d8ca9
feat(mdhtml): add tiny crate to safely parse html
basically reduce tags to a subset comparable to markdown, also provide
markdown->html conversion
2024-05-02 14:20:49 +02:00
4a7425ef24
fix: mut 2024-05-02 13:31:09 +02:00
b708f642c1
fix(apb): dont panic if missing pubkey, return "" 2024-05-02 13:16:37 +02:00
44de7040ec
fix: when updating must reset changing fields 2024-05-02 13:16:23 +02:00
95ad0d92b7
fix(web): smaller textarea font size 2024-05-02 12:47:48 +02:00
4095b0eece
fix: add context extensions depending on type
if actor, add both counters and fe, if object add just fe:likedByMe, to
avoid sending useless text every time
2024-05-02 05:10:38 +02:00
0b07979244
feat(web): thread guides 2024-05-02 03:25:59 +02:00
0b21dd47e6
fix: skip local users while updating 2024-05-02 03:03:43 +02:00
5d58ef40a9
feat: added users update task 2024-05-02 03:02:36 +02:00
9bc7ddb0ae
chore: separate fetcher fetch from pull
fetch uses db and inserts, pull just gets the remote resource
2024-05-02 02:58:56 +02:00
01c02c5258
feat: impl Addressed on object and activity models 2024-05-02 02:58:45 +02:00
eb472517ab
fix(apb): don't require Object for Addressed 2024-05-02 02:58:19 +02:00
f833875c65
chore(web): imports 2024-05-02 02:58:06 +02:00
8f4c1a6313
fix(web): hide follow btns if my id or logged out 2024-05-02 02:29:29 +02:00
b2717223b3
feat(web): add accept/reject buttons under folreqs
they never disappear so there's quite some potential for spam but ehh
better than nothing for now
2024-05-02 02:08:34 +02:00
b6cac77bf2
fix(web): prefetch users when as object, fix links 2024-05-02 02:07:54 +02:00
4f477fd072
fix(web)!: store full user id in auth 2024-05-02 02:07:11 +02:00
0435c779c5
fix(web): updated apb fields 2024-05-02 00:59:47 +02:00
bcd8f27933
fix: use new apb fields 2024-05-02 00:47:11 +02:00
a499c93e99
feat(apb): add my custom extension to count follows
this is really mehhh because if it was possible to embed
following/followers collections this would be pointless but it isn't so
to avoid making multiple fetches i'm adding these fields in the first
actor document
2024-05-02 00:29:17 +02:00
a1d1ba3744
fix(apb): add setters/getters for all fields 2024-05-02 00:28:54 +02:00
05bce0c486
feat(apb): added my apb extension for frontends
very much ad-hoc but at least i made the ns page so it should be kind of
ok to use i think? if others want to use upub frontend and have all its
features working, this extension will be necessary, rather than some
custom whole api
2024-05-02 00:28:09 +02:00
a615b5d4e8
fix(apb): bool setter/getter with rename 2024-05-02 00:25:47 +02:00
bdf48bb7cb
feat(apb): likes and shares optional collections 2024-05-02 00:25:26 +02:00
b1e4c4e79b
fix: add sensitive to context since we use it 2024-05-01 21:21:26 +02:00
e0331751a4
fix(apb): sensitive under proper extension 2024-05-01 21:14:23 +02:00
aa84aef66e
fix(apb): remove node update
there's an undelying clone so this does nothing
2024-05-01 21:03:00 +02:00
dbf2450433
fix: select only user id column 2024-05-01 18:45:30 +02:00
84a446b494
fix: answer deletions with 200 2024-05-01 18:43:43 +02:00
bb4f6e9df0
fix: show follow/by for remote users too
this is super ugly because there's a ton of duplication but let's see if
it works first...
2024-05-01 18:37:26 +02:00
693687dce2
feat(web): show follow button when not following 2024-05-01 18:24:32 +02:00
62b426acc1
feat(web): combine token and username in auth ctx 2024-05-01 18:24:27 +02:00
4527ff884e
feat: show in user queries if follow/by self 2024-05-01 17:47:37 +02:00
75d03195d9
feat: allow checking if identity is someone 2024-05-01 17:47:21 +02:00
71c3c54859
feat(apb): allow editing inner nodes
actually only if it implements Clone but whatever good enough for now
2024-05-01 17:46:54 +02:00
7439b815be
docs: added matrix room link, updated progress 2024-05-01 17:04:32 +02:00
d1760f2637
fix(web): buttons are not reactive until logged in 2024-05-01 16:55:02 +02:00
c059f664ac
fix(web): CWs are always closed
should do a frontend config option eventually, rather than using
`sensitive` to decide
2024-05-01 16:46:51 +02:00
a3d649d17b
chore(web): more wildcard imports for components 2024-05-01 16:46:36 +02:00
f483ea14b4
feat(web): added reply button
not the best way to do it but it works!
2024-05-01 16:46:19 +02:00
102414e1a3
chore(web): separated ActorStrip component 2024-05-01 16:45:27 +02:00
9fe3cb3bda
feat(web): use reference counting rather than clones
before, cache would clone the underlying object every time it was
accessed. this was definitely incredibly wasteful! now it clones the
Arc, which is super cheap. the extra work necessary while fetching
things is most likely more than compensated by saved clones every time
we render stuff. there is some dumb arc creation here and there (like
for the debug page), but it's mostly my lazyness, they can probably go
and should not be that much of a big deal anyway.
TLDR things were already fast but should be EVEN FASTER!!!
2024-05-01 16:06:46 +02:00
e8b36cecdf
chore: should move this later 2024-04-30 16:51:30 +02:00
f2dc3f69f2
chore: refactor, moved cli tasks under directory 2024-04-30 16:48:28 +02:00