1
0
Fork 0
forked from alemi/upub
Commit graph

46 commits

Author SHA1 Message Date
f2dc3f69f2
chore: refactor, moved cli tasks under directory 2024-04-30 16:48:28 +02:00
a6e12468b7
fix: db fix tasks would get stuck on sqlite
i think because the db would end up locked, added brackets to be sure to
drop the streaming reference. also it could crash when updating records
not found, just spit a warn
2024-04-29 21:23:12 +02:00
3129970fb5
feat: added fix task to recalculate stats
note that won't reset everything to 0, just force set every post which
has a count != 0
also this is kind of a bad way to do it. at least we stream objects, but
we could have it happen all inside our db with SELECT, DISTINCT and SUM,
i just don't know how to represent it in sea_orm. an intermediate
optimization may be selecting only certain columns but it's relevant
almost only for replies
2024-04-29 20:53:19 +02:00
8a6c05f4fb
fix: relay follow/accept are public 2024-04-23 16:54:03 +02:00
2a9cf5bcf5
feat: command to also accept relay follow reqs
this has quite awful UX because you can't really know if relay is
following back without checking logs, but whatevvvv works for now
2024-04-23 16:26:19 +02:00
8150b9082d
fix: proper addressing, ctx.base() with trailing /
maybe aode-relay (and rust IRI parser) goes mad if there's no
trailing slash? idk, i'm speculating
2024-04-23 04:56:29 +02:00
1d8b69dda7
fix: try setting digest always
aode relay complains that digest is missing on fetches? idk, let's try
putting an empty digest, will aode work? will mastodon/akkoma still
work? will this fix some *keys too???
2024-04-22 04:11:59 +02:00
4d0fb9b684
fix: pass actor, inbox gets resolved automatically 2024-04-22 04:03:47 +02:00
32707bda0c
feat: added command to follow relays 2024-04-22 03:56:07 +02:00
6613f337ce
feat: cors and tracing layers 2024-04-13 22:31:46 +02:00
4d44688564
feat: dump json to stdout after fetching 2024-04-13 22:17:35 +02:00
c9a20b4e65
feat: node.fetch() is now signed 2024-04-13 22:13:36 +02:00
0d340185cf
feat: improved addressing select 2024-04-12 19:35:26 +02:00
9e67eead69
feat: multi-join maybe? fix inbox not embedding obj
got this from https://github.com/SeaQL/sea-orm/discussions/1502, not
sure it's what i need but i'm trying some stuff
2024-04-11 17:00:09 +02:00
86e84d88aa
chore: updated apb things, restructured a bit 2024-04-11 00:29:32 +02:00
4c2eb7b990
chore: better routing structure 2024-04-09 04:35:57 +02:00
bb26ff763d
chore: restructured completely
kinda MVC:
Model -> model
View -> routes
Controller -> server
2024-04-09 01:14:48 +02:00
24d547e93a
feat: subdivide into features 2024-04-06 18:03:13 +02:00
a624222751
feat: listed half of mastodon's api routes 2024-04-06 17:20:44 +02:00
520c8eff3a
feat: separated apb types into crate, reworked
no more "impl ..." hell, each trait has associated types so that we know
it's a "Self::Link" or a "Self::Actor", but in practice they can both be
a "serde_json::Value" and thus we can change its type. also Node::Array
is now a Vec<T> rather than Vec<Node<T>> because it makes more sense.
Node is Iterable and will yield zero (Empty|Link), one (Object) or many
(Array) Ts
2024-04-06 16:56:13 +02:00
e68332bc31
chore: refactor collections with utils, moved stuff 2024-03-28 04:52:17 +01:00
6a050c0bb4
fix: actually fixed it 2024-03-26 00:58:01 +01:00
3a0ca6af86
feat: control how many statuses to insert 2024-03-26 00:53:07 +01:00
4a99a3dc40
chore: small improvements and fixed some warns 2024-03-26 00:49:07 +01:00
e1b93e8a93
feat: added basic fetcher, get keys at startup 2024-03-25 21:19:02 +01:00
6be1a445be
chore: not all pub 2024-03-25 05:08:29 +01:00
5d7ce0e3c4
feat: simple delivery system + http signatures 2024-03-25 05:07:58 +01:00
de74669bd7
chore: moved version as const 2024-03-25 05:02:20 +01:00
384d5147ed
feat: initial auth extractor 2024-03-25 01:58:30 +01:00
13afd5be87
chore: split server context and router 2024-03-23 20:24:14 +01:00
812fe05b6b fix: cleaner way to stop showing sqlx logs 2024-03-22 17:54:49 +01:00
69c06d4a9c fix: hide sqlx queries
args are hidden anyway and they are quite unreadable
2024-03-22 17:49:25 +01:00
95eaa9596c feat: added simpler ways to ignore+log errors 2024-03-22 17:43:57 +01:00
d53644ea1f
chore: moved faker in its own file 2024-03-21 20:36:28 +01:00
225d8b9292
fix: clap clashes 2024-03-20 09:04:08 +01:00
5386c7ba7a
feat: allow specifying base domain 2024-03-20 08:56:35 +01:00
680c61ff9a
feat: mut traits, getter/setters for base+object 2024-03-20 05:44:10 +01:00
a4374c4ff0
feat: debug fetch command to get remote stuff 2024-03-19 07:39:12 +01:00
32d6e80820
docs: added readme, renamed
upub is actually a pretty cool name, should snipe the crates.io name
asap
2024-03-16 06:06:31 +01:00
52f7ee0990
feat: faker cmd for fake test entities 2024-03-16 05:46:14 +01:00
85c9b363f6
feat: db model for activity and object + routes 2024-03-16 05:45:58 +01:00
170756588d
feat: added migrations
TODO gate them under feature flag eventually ™️
2024-03-16 03:29:06 +01:00
e8a7e4e31c
feat: add types enum and basic inbox match 2024-03-15 19:43:29 +01:00
ac3f07f804
feat: work on activitystream types 2024-03-14 05:27:08 +01:00
6bae33f0a6
chore: sample axum route 2024-02-09 17:07:55 +01:00
c69027638f
feat: add simple models
actor, webfinger, activity, object
thanks gargron
https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/
2023-12-30 05:08:05 +01:00