offline-twitter/internal/webserver/handler_notifications.go
2024-08-31 23:23:22 -07:00

12 lines
298 B
Go

package webserver
import (
"net/http"
)
func (app *Application) Notifications(w http.ResponseWriter, r *http.Request) {
feed := app.Profile.GetNotificationsForUser(app.ActiveUser.ID, 0)
app.buffered_render_page(w, "tpl/notifications.tpl", PageGlobalData{TweetTrove: feed.TweetTrove}, feed)
}