BUGFIX: fix focused tweets being clickable

This commit is contained in:
Alessio 2024-02-18 15:23:16 -08:00
parent 90b9df15e5
commit 1317d44b52
2 changed files with 7 additions and 1 deletions

View File

@ -49,6 +49,7 @@ func (app *Application) Messages(w http.ResponseWriter, r *http.Request) {
app.buffered_render_htmx(w, "dm-composer", global_data, chat_view_data) // Wipe the chat box
go app.Profile.SaveDMTrove(trove, true)
}
chat_view_data.ActiveRoomID = room_id
chat_view_data.LatestPollingTimestamp = -1
if latest_timestamp_str := r.URL.Query().Get("latest_timestamp"); latest_timestamp_str != "" {

View File

@ -134,7 +134,12 @@ func (app *Application) TweetDetail(w http.ResponseWriter, r *http.Request) {
data.TweetDetailView = twt_detail
app.buffered_render_page(w, "tpl/tweet_detail.tpl", PageGlobalData{TweetTrove: twt_detail.TweetTrove}, data)
app.buffered_render_page(
w,
"tpl/tweet_detail.tpl",
PageGlobalData{TweetTrove: twt_detail.TweetTrove, FocusedTweetID: data.MainTweetID},
data,
)
}
type key string