BUGFIX: fix focused tweets being clickable
This commit is contained in:
parent
90b9df15e5
commit
1317d44b52
@ -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 != "" {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user