Comment context: extra buttons are shown if comment is on a wall #89

Closed
opened 2023-01-21 00:26:47 +00:00 by mummified-corroding-granny · 2 comments

As per title and attachment, a pair of blocky minecraft-like breasts are shown near the tab chooser when accessing a comment context that is on a wall.

Attachment is from https://watchpeopledie.tv/@Aevann/wall/comment/338216#context

As per title and attachment, a pair of blocky minecraft-like breasts are shown near the tab chooser when accessing a comment context that is on a wall. Attachment is from https://watchpeopledie.tv/@Aevann/wall/comment/338216#context

Example for current rdrama: https://rdrama.net/@Aevann/wall/comment/3210272#context

Hand-copied git diffs because my fork is broken and cannot run the containers due to limiter changes. Did not submit PR because I doubt this is implemented the way you want it, but anyway this works on my machine TM:

diff --git a/files/templates/userpage/header.html b/files/templates/userpage/header.html
index 2b18adb67..a032dc429 100644
--- a/files/templates/userpage/header.html
+++ b/files/templates/userpage/header.html
@@ -28,6 +28,7 @@
        </div>
 </div>
 {% if "/saved/" not in request.path and "/subscribed/" not in request.path and not path == '' %}
+{% if not skip_render_dropdowns_sort_t %}
        <div class="d-flex justify-content-between align-items-center" style="padding-top:10px">

                <div class="d-flex align-items-center">
@@ -72,3 +73,4 @@
                </div>
        </div>
 {% endif %}
+{% endif %}
diff --git a/files/routes/users.py b/files/routes/users.py
index 5ac840600..03b1d6cfb 100644
--- a/files/routes/users.py
+++ b/files/routes/users.py
@@ -869,7 +845,7 @@ def u_username_wall_comment(v:User, username:str, cid):

        if v and v.client: return top_comment.json(db=g.db)

-       return render_template("userpage/wall.html", u=u, v=v, listing=[top_comment], page=1, is_following=is_following, standalone=True, render_replies=True, wall=True, comment_info=comment_info)
+       return render_template("userpage/wall.html", u=u, v=v, listing=[top_comment], page=1, is_following=is_following, standalone=True, render_replies=True, wall=True, comment_info=comment_info, skip_render_dropdowns_sort_t=True)


 @app.get("/@<username>/posts")

Example for current rdrama: https://rdrama.net/@Aevann/wall/comment/3210272#context Hand-copied git diffs because my fork is broken and cannot run the containers due to limiter changes. Did not submit PR because I doubt this is implemented the way you want it, but anyway this works on my machine TM: ``` diff --git a/files/templates/userpage/header.html b/files/templates/userpage/header.html index 2b18adb67..a032dc429 100644 --- a/files/templates/userpage/header.html +++ b/files/templates/userpage/header.html @@ -28,6 +28,7 @@ </div> </div> {% if "/saved/" not in request.path and "/subscribed/" not in request.path and not path == '' %} +{% if not skip_render_dropdowns_sort_t %} <div class="d-flex justify-content-between align-items-center" style="padding-top:10px"> <div class="d-flex align-items-center"> @@ -72,3 +73,4 @@ </div> </div> {% endif %} +{% endif %} ``` ``` diff --git a/files/routes/users.py b/files/routes/users.py index 5ac840600..03b1d6cfb 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -869,7 +845,7 @@ def u_username_wall_comment(v:User, username:str, cid): if v and v.client: return top_comment.json(db=g.db) - return render_template("userpage/wall.html", u=u, v=v, listing=[top_comment], page=1, is_following=is_following, standalone=True, render_replies=True, wall=True, comment_info=comment_info) + return render_template("userpage/wall.html", u=u, v=v, listing=[top_comment], page=1, is_following=is_following, standalone=True, render_replies=True, wall=True, comment_info=comment_info, skip_render_dropdowns_sort_t=True) @app.get("/@<username>/posts") ```

Closing because fixed in 58864684b7

Closing because fixed in https://fsdfsd.net/rDrama/rDrama/commit/58864684b76f2fe0b3a52691005f36387c7bf247
Sign in to join this conversation.
There is no content yet.