Commit graph

20 commits

Author SHA1 Message Date
Yvan
b218591ea7 working out how to handle exception based errors in a 'nice' way 2025-01-30 12:45:49 +00:00
Yvan
8ccd5390fa working out how to handle exception based errors in a 'nice' way 2025-01-29 19:44:33 +00:00
Yvan
bcaa6508f1 add links to the bot list, and better name the template, and add a bot details viewing page 2025-01-29 11:45:21 +00:00
Yvan
d64a9c75e8 fix initialisation of Bot members, 'published' was not copied up 2025-01-29 03:46:23 +00:00
Yvan
95fed42020 The whole Bot model/repo setup has been redesigned to follow the more complete/correct DAO-like pattern. Mostly everything still works, just not handling the not found exception rising from the Optional I think. 2025-01-29 03:11:06 +00:00
Yvan
4f73698e2f Wasn't happy with that JSON templating so got rid of it rather than try and fix how it broke the HTML templating. There will be better ways to generate the required JSON. 2025-01-27 13:44:30 +00:00
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