tweak route so all the search engine spiders get 404 when retrieving post_options #394

This commit is contained in:
rimu 2024-12-22 15:11:42 +13:00
parent c10316630e
commit 91a74e9573
3 changed files with 4 additions and 4 deletions

View file

@ -182,7 +182,7 @@
</div> </div>
<div class="post_options_link"> <div class="post_options_link">
<div class="dropdown"> <div class="dropdown">
<a href="{{ url_for('post.post_options', post_id=post.id) }}" <a href="{{ url_for('post.post_options', post_id=post.id) if low_bandwidth else '#' }}"
data-bs-toggle="dropdown" data-bs-toggle="dropdown"
rel="nofollow"><span class="fe fe-options" title="Options"></span></a> rel="nofollow"><span class="fe fe-options" title="Options"></span></a>
<ul class="dropdown-menu" style="width: 320px"> <ul class="dropdown-menu" style="width: 320px">

View file

@ -97,7 +97,7 @@
{% if not post_reply.post.deleted -%} {% if not post_reply.post.deleted -%}
<div class="dropdown"> <div class="dropdown">
<a <a
href="{{ url_for('post.post_reply_options', post_id=post_reply.post.id, comment_id=post_reply.id) }}" href="{{ url_for('post.post_reply_options', post_id=post_reply.post.id, comment_id=post_reply.id) if low_bandwidth else '#' }}"
data-bs-toggle="dropdown" rel="nofollow noindex" data-bs-toggle="dropdown" rel="nofollow noindex"
aria-label="{{ _('Comment options') }}"> aria-label="{{ _('Comment options') }}">
<span class="fe fe-options" title="Options"> </span> <span class="fe fe-options" title="Options"> </span>

View file

@ -21,9 +21,9 @@
{% endif -%} {% endif -%}
<div class="post_options_link"> <div class="post_options_link">
<div class="dropdown"> <div class="dropdown">
<a href="{{ url_for('post.post_options', post_id=post.id) }}" <a href="{{ url_for('post.post_options', post_id=post.id) if low_bandwidth else '#' }}"
data-bs-toggle="dropdown" data-bs-toggle="dropdown"
rel="nofollow"><span class="fe fe-options" title="Options"></span></a> rel="nofollow noindex"><span class="fe fe-options" title="Options"></span></a>
<ul class="dropdown-menu" style="width: 320px"> <ul class="dropdown-menu" style="width: 320px">
<div <div
hx-get="{{ url_for('post.post_options', post_id=post.id) }}" hx-get="{{ url_for('post.post_options', post_id=post.id) }}"