This commit is contained in:
parent
216d60c84d
commit
32f1d87831
6
app.py
6
app.py
@ -93,8 +93,7 @@ def answer_post(target_post_id):
|
|||||||
|
|
||||||
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'mp4', 'webm', 'webp'}
|
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'mp4', 'webm', 'webp'}
|
||||||
def allowed_file(filename):
|
def allowed_file(filename):
|
||||||
return '.' in filename and \
|
return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
|
||||||
filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
|
|
||||||
|
|
||||||
@app.route('/post_to_another_post/<post_key>', methods=['POST'])
|
@app.route('/post_to_another_post/<post_key>', methods=['POST'])
|
||||||
def post_to_post(post_key):
|
def post_to_post(post_key):
|
||||||
@ -163,8 +162,9 @@ def post_to_post(post_key):
|
|||||||
|
|
||||||
|
|
||||||
#### TODO websockets
|
#### TODO websockets
|
||||||
|
#### TODO sse
|
||||||
#### TODO kafka
|
#### TODO kafka
|
||||||
#### TODO shards
|
#### TODO shards
|
||||||
#### TODO grpc
|
#### TODO grpc
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="card-image" style=" margin:10px; ">
|
<div class="card-image" style=" margin:10px; ">
|
||||||
<img src="https://loremflickr.com/g/320/240/paris">
|
<a href="https://static.guaranteedstruggle.host/thread-pics/photo_2023-05-16_00-49-34.jpg" target="_blank" ">
|
||||||
|
<img src="https://static.guaranteedstruggle.host/thread-pics/photo_2023-05-16_00-49-34.jpg">
|
||||||
|
</a>
|
||||||
<span class="card-title"><a class="link" href="#post-{{ posto.parent_post }}"> >>{{ posto.parent_post }} </a> </span>
|
<span class="card-title"><a class="link" href="#post-{{ posto.parent_post }}"> >>{{ posto.parent_post }} </a> </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user