aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorknotteye <knotteye@airmail.cc>2021-07-01 14:39:44 -0500
committerknotteye <knotteye@airmail.cc>2021-07-01 14:39:44 -0500
commit638a03b458b71564b1db439e6386d7dbf2a5181c (patch)
tree59e5a8548fd0623c379516a47b26b0f074b4a32e /client.go
parentdbe79ecbb5bb0645093780380cc241f6cd8d1a20 (diff)
linkify text and use imageboard name to identify it
Diffstat (limited to 'client.go')
-rw-r--r--client.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/client.go b/client.go
index 49c7d0c..dd40f3d 100644
--- a/client.go
+++ b/client.go
@@ -1,6 +1,5 @@
package main
-import "fmt"
import "net/http"
import "html/template"
import "database/sql"
@@ -36,7 +35,7 @@ type Board struct{
type PageData struct {
Title string
- Message string
+ PreferredUsername string
Board Board
Pages []int
CurrentPage int
@@ -81,7 +80,7 @@ func IndexGet(w http.ResponseWriter, r *http.Request, db *sql.DB) {
var data PageData
data.Title = "Welcome to " + actor.PreferredUsername
- data.Message = fmt.Sprintf("%s is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here https://github.com/FChannel0", Domain)
+ data.PreferredUsername = actor.PreferredUsername
data.Boards = Boards
data.Board.Name = ""
data.Key = *Key