diff options
author | FChannel <> | 2021-05-12 23:06:40 -0700 |
---|---|---|
committer | FChannel <> | 2021-05-12 23:06:40 -0700 |
commit | d46dc93dce176e8e2c054a1454c097123a08b4af (patch) | |
tree | 022698ceec742efbd55ffcaf7919dd370dd2fdba /client.go | |
parent | 88521d92e6228a5bbfe1b0a5303bb1bd9cb5d955 (diff) |
admin tripcode
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -77,7 +77,7 @@ func IndexGet(w http.ResponseWriter, r *http.Request, db *sql.DB) { t := template.Must(template.ParseFiles("./static/main.html", "./static/index.html")) actor := GetActorFromDB(db, Domain) - + 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) @@ -149,7 +149,7 @@ func CatalogGet(w http.ResponseWriter, r *http.Request, db *sql.DB, collection C t := template.Must(template.ParseFiles("./static/main.html", "./static/ncatalog.html", "./static/top.html")) actor := collection.Actor - + var returnData PageData returnData.Board.Name = actor.Name returnData.Board.PrefName = actor.PreferredUsername @@ -191,7 +191,6 @@ func PostGet(w http.ResponseWriter, r *http.Request, db *sql.DB){ inReplyTo := actor.Id + "/" + postId var returnData PageData - returnData.Board.Name = actor.Name returnData.Board.PrefName = actor.PreferredUsername returnData.Board.To = actor.Outbox |