dfe116506a
chore: refactor
...
moved into models converters to ap objects, single conditions are now
direct column checks
2024-04-19 03:28:39 +02:00
a897edd310
feat: add statuses count and in_reply_to fields
...
migration + models update
2024-04-18 04:09:13 +02:00
b11da7f3c0
fix: oops i mixed up some fields
2024-04-14 03:48:37 +02:00
a735e16f73
fix: image and icon live under url
2024-04-14 03:39:52 +02:00
f29d3baeb9
fix: name is nullable, preferredUsername is not
2024-04-13 16:43:19 +02:00
86e84d88aa
chore: updated apb things, restructured a bit
2024-04-11 00:29:32 +02:00
bb26ff763d
chore: restructured completely
...
kinda MVC:
Model -> model
View -> routes
Controller -> server
2024-04-09 01:14:48 +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
0d1250fd6f
feat: add addressing table
...
this should allow to build timelines and check access permissions
quickly. my only concern is keeping thousands, if not even millions, of
rows always with full strings. future optimizations may look into an
intermediary table to map ids to integers and optimize this table's
storage
2024-03-24 04:03:44 +01:00
7251a3e92c
feat: added sessions with credentials
2024-03-24 04:03:22 +01:00
d36ac82dd9
feat: add followers and followers count to users
...
redo migrations (: honestly if you're expecting to keep a long-lasting
db at this stage of development i have bad news for you
2024-03-23 16:44:27 +01:00
72c2cd5f81
chore: cleaned up all model modules
2024-03-23 06:32:15 +01:00
1a7a4f6df6
chore: ok clippy
2024-03-23 06:14:34 +01:00
c361528b2f
feat: moved object creation out of entity
2024-03-23 06:10:53 +01:00
f48509e2d8
feat: added tables+entities for config, credentials
...
simple password auth is bad and shall likely go but it's easy for now
and i need a way to login to test user interactions as i make the outbox
working
2024-03-23 05:02:39 +01:00
c4f677097b
fix: make @context addition explicit
...
also moved things around: object() is now into LD trait
2024-03-21 19:15:19 +01:00
483076b6b2
fix: show published time on users
2024-03-21 16:47:15 +01:00
cacef6e029
fix: oops mixed preferred_username and name
2024-03-21 02:50:48 +01:00
d109faf5cd
fix: add #main-key key id + endpoints placeholder
2024-03-21 02:45:24 +01:00
baa39aa81f
fix: all users are discoverable for now
...
does it even make a difference?
2024-03-21 02:36:41 +01:00
b27c2cf31a
fix: image and icon are inline anonymous objects..
2024-03-21 02:32:13 +01:00
de9c3498bc
feat: add pubkey to actor
...
veeeeery crude impl, with hardcoded pubkey in faker cmd, but whatevs i
want activitupub.academy to fetch meeee
2024-03-21 02:11:31 +01:00
30637f93ee
feat: extended database entities
2024-03-21 01:09:33 +01:00
680c61ff9a
feat: mut traits, getter/setters for base+object
2024-03-20 05:44:10 +01:00
3a53c6a2ed
feat: added back ToJson trait for db entities
2024-03-19 06:49:21 +01:00
7d69f8148c
chore: refactored type enums
2024-03-19 01:00:44 +01:00
0adeb667c4
feat: add constructors for entities
2024-03-16 20:09:06 +01:00
85c9b363f6
feat: db model for activity and object + routes
2024-03-16 05:45:58 +01:00
7876b95de5
feat: recreated models, now with sea_orm
...
old ones from mastodon's blog weren't that useful since all
objects/activities are traits in the end
2024-03-16 03:27:36 +01:00