mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
tweak route so all the search engine spiders get 404 when retrieving post_options #394
This commit is contained in:
parent
c10316630e
commit
91a74e9573
3 changed files with 4 additions and 4 deletions
|
@ -182,7 +182,7 @@
|
|||
</div>
|
||||
<div class="post_options_link">
|
||||
<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"
|
||||
rel="nofollow"><span class="fe fe-options" title="Options"></span></a>
|
||||
<ul class="dropdown-menu" style="width: 320px">
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
{% if not post_reply.post.deleted -%}
|
||||
<div class="dropdown">
|
||||
<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"
|
||||
aria-label="{{ _('Comment options') }}">
|
||||
<span class="fe fe-options" title="Options"> </span>
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
{% endif -%}
|
||||
<div class="post_options_link">
|
||||
<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"
|
||||
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">
|
||||
<div
|
||||
hx-get="{{ url_for('post.post_options', post_id=post.id) }}"
|
||||
|
|
Loading…
Reference in a new issue