diff --git a/mssql.go b/mssql.go index 473059ca..2df58dde 100644 --- a/mssql.go +++ b/mssql.go @@ -73,7 +73,7 @@ func initMSSQL() (err error) { // TODO: Is there a less noisy way of doing this for tests? /*log.Print("Preparing getActivityFeedByWatcher statement.") - stmts.getActivityFeedByWatcherStmt, err = db.Prepare("SELECT activity_stream_matches.asid, activity_stream.actor, activity_stream.targetUser, activity_stream.event, activity_stream.elementType, activity_stream.elementID FROM [activity_stream_matches] INNER JOIN [activity_stream] ON activity_stream_matches.asid = activity_stream.asid AND activity_stream_matches.watcher != activity_stream.actor WHERE [watcher] = ? ORDER BY activity_stream.asid DESC OFFSET 0 ROWS FETCH NEXT 16 ROWS ONLY") + stmts.getActivityFeedByWatcherStmt, err = db.Prepare("SELECT activity_stream_matches.asid, activity_stream.actor, activity_stream.targetUser, activity_stream.event, activity_stream.elementType, activity_stream.elementID, activity_stream.createdAt FROM [activity_stream_matches] INNER JOIN [activity_stream] ON activity_stream_matches.asid = activity_stream.asid AND activity_stream_matches.watcher != activity_stream.actor WHERE [watcher] = ? ORDER BY activity_stream.asid DESC OFFSET 0 ROWS FETCH NEXT 16 ROWS ONLY") if err != nil { return err } diff --git a/templates/header.html b/templates/header.html index c2c81a5d..092c8d35 100644 --- a/templates/header.html +++ b/templates/header.html @@ -26,7 +26,7 @@
- {{if not .CurrentUser.IsSuperMod}}{{end}}{{flush}} + {{/**{{if not .CurrentUser.IsSuperMod}}{{end}}**/}}{{flush}}