diff --git a/Java/Spring/activitypubbot/src/main/java/dev/activitypub/activitypubbot/BotController.java b/Java/Spring/activitypubbot/src/main/java/dev/activitypub/activitypubbot/BotController.java index a3255bd..f69c625 100644 --- a/Java/Spring/activitypubbot/src/main/java/dev/activitypub/activitypubbot/BotController.java +++ b/Java/Spring/activitypubbot/src/main/java/dev/activitypub/activitypubbot/BotController.java @@ -72,4 +72,13 @@ public class BotController { model.addAttribute("bot", bot); return "makebot_submitted"; } + + @PostMapping("/viewbot/{username}") + public String viewbotpost(String posttext, @PathVariable String username, Model model) { + log.info("BotController::postpost: " + username + ", content: " + posttext); + + Bot bot = botServ.getBotByUsername(username); + model.addAttribute("bot", bot); + return "viewbot"; + } } diff --git a/Java/Spring/activitypubbot/src/main/resources/templates/viewbot.html b/Java/Spring/activitypubbot/src/main/resources/templates/viewbot.html index cb0ddf1..cf7fd06 100644 --- a/Java/Spring/activitypubbot/src/main/resources/templates/viewbot.html +++ b/Java/Spring/activitypubbot/src/main/resources/templates/viewbot.html @@ -18,6 +18,15 @@ .value { font-weight: bold; } + #posts { + border-right: solid 1px; + } + #followers { + border-left: solid 1px; + } + #posttext { + height: 5em; + } @@ -42,6 +51,29 @@ Public Key:

 
+            
+
+
+

New Post

+
+
+ +
+
+ +
+
+ +

Past Posts

+
+
+

Replies

+
+
+

Followers

+
+
+