BUGFIX: Fix retweeted-by button trying to open 2 pages simultaneously (user feed and the retweeted tweet)

This commit is contained in:
Alessio 2023-10-12 09:57:31 -07:00
parent f4ccc075f6
commit 9bb751afa5
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ pipeline:
- ./compile.sh
- ./tw --profile ../sample_data/profile --addr localhost:1000 webserver &
- sleep 1
- curl localhost:1000/cernovich
- curl localhost:1000/cernovich > webserver_test_output.html
- jobs -p | xargs -I{} kill -- -{}
version_bump_test:

View File

@ -13,7 +13,7 @@
{{if (not (eq .RetweetID 0))}}
{{$retweet := (retweet .RetweetID)}}
{{$retweet_user := (user $retweet.RetweetedByID)}}
<div class="retweet-info-container">
<div class="retweet-info-container" hx-trigger="click consume">
<img class="svg-icon" src="/static/icons/retweet.svg" />
<span class="retweeted-by-label">Retweeted by</span>
<a class="retweeted-by-user" hx-get="/{{$retweet_user.Handle}}" hx-target="body" hx-swap="outerHTML" hx-push-url="true">