master
Aevann1 2021-12-04 22:16:56 +02:00
parent 97ff77905d
commit 7d5141c8cb
6 changed files with 10 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -346,6 +346,8 @@ def message2(v, username):
message = request.values.get("message", "").strip()[:1000].strip()
if 'linkedin.com' in message: return {"error": "this domain 'linkedin.com' is banned"}
message = re.sub('!\[\]\((.*?)\)', r'\1', message)
text_html = Renderer().render(mistletoe.Document(message))
@ -402,6 +404,8 @@ def messagereply(v):
message = request.values.get("body", "").strip()[:1000].strip()
if 'linkedin.com' in message: return {"error": "this domain 'linkedin.com' is banned"}
message = re.sub('!\[\]\((.*?)\)', r'\1', message)
id = int(request.values.get("parent_id"))

View File

@ -761,7 +761,7 @@
{% include "expanded_image_modal.html" %}
<script defer src="/assets/js/popover.js?v=9"></script>
<script defer src="/assets/js/comments.js?v=5"></script>
<script defer src="/assets/js/comments.js?v=7"></script>
<script>
window.addEventListener("load",function(event) {

View File

@ -84,7 +84,7 @@
</div>
</div>
<script defer src="/assets/js/emoji_modal.js?v=126"></script>
<script defer src="/assets/js/emoji_modal.js?v=128"></script>
<style>
a.emojitab {

View File

@ -384,7 +384,7 @@
({% if p.realurl(v) %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>{{p.domain}}</a>{% else %}text post{% endif %})
{% if p.edited_utc %}
&nbsp;&nbsp;Edited <span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('edited_timestamp','{{p.edited_utc}}')" id="edited_timestamp">{{p.edited_string}}</span>
&nbsp;&nbsp;Edited <span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('edited_timestamp','{{p.edited_utc}}')" id="edited_timestamp">{{p.edited_string}}</span>
{% endif %}
&nbsp;&nbsp;{{p.views}} views
</div>
@ -878,7 +878,7 @@
{% include "ban_modal.html" %}
{% endif %}
{% endif %}
<script defer src="/assets/js/comments.js?v=5"></script>
<script defer src="/assets/js/comments.js?v=7"></script>
{% include "expanded_image_modal.html" %}
{% endif %}

View File

@ -658,4 +658,4 @@
<script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
<script defer src="/assets/js/popover.js?v=9"></script>
<script defer src="/assets/js/submission_listing.js?v=1"></script>
<script defer src="/assets/js/submission_listing.js?v=4"></script>