Commit graph

14 commits

Author SHA1 Message Date
Yvan
5f9f024904 Now generating templated JSON actor and webfinger responses, which work against a Mastodon user search... the borrowed Thymeleaf config stuff to enable JSON templating has broken the HTML templating though. Sigh. 2025-01-27 04:03:27 +00:00
Yvan
614b3a48dd Moving derived data accessors out of the @Entity... have created a Bot @Service... and implemented the calls there but I'm unconvinced by this as not sure how we can then use that in the Controller/Model side of the code now. What I want to do is access a Bot's "id" which is derived from its username so needs code to build it. I'm starting to wonder if I should just store some of the derived data in the database but that feels clunky (could be more performant though, hmm..) 2025-01-27 00:48:38 +00:00
Yvan
1518f7597d Tidying up some mess and redundancy, adding request logging. 2025-01-25 19:50:35 +00:00
Yvan
bb5d51b3c7 switch from pringln to using logging functions, enable file logging, turn on fancy colour as the auto-detect doesn't seem to work in my terminal (but the colour does) - wonder if I can fix the auto-detected rather than force the colour? 2025-01-25 11:37:46 +00:00
Yvan
06cb88f738 we are now writing and reading bot info to postgres! That was a slog... in the meantime we've changed from JSP to ThymeLeaf, which seems to be much nicer to work with 2025-01-25 02:57:50 +00:00
Yvan
76af0c01d2 popping in basic template page stubs 2025-01-24 14:56:20 +00:00
Yvan
e1bb1b8206 oops, forgot the initial index template! 2025-01-24 14:16:55 +00:00
Yvan
c787ce032a naming improvements and tidying 2025-01-24 13:52:44 +00:00
Yvan
961c878cbf now we can serve json or html dependent on the req accept header 2025-01-24 11:06:37 +00:00
Yvan
8cdbc11d92 moving comment out of JSON string 2025-01-24 00:50:45 +00:00
Yvan
d2760742b6 Initial working skeleton/prototype that merely returns a hard-coded actor 2025-01-24 00:46:56 +00:00
Yvan
cf6e536aca works to the point of serving a hard-coded user via HTTPS (needs cert set up) 2025-01-24 00:38:26 +00:00
Yvan
260c2f660b just a quick dumb keygen script 2025-01-23 17:53:30 +00:00
Yvan
516652c11c initial check-in for project to implement a minimal ActivityPub bot in Java/Spring 2025-01-23 17:27:34 +00:00