mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
verification token bug
This commit is contained in:
parent
8d8f74f0c3
commit
59920686c0
2 changed files with 2 additions and 3 deletions
|
@ -57,7 +57,6 @@ def login():
|
|||
return response
|
||||
login_user(user, remember=True)
|
||||
current_user.last_seen = utcnow()
|
||||
current_user.verification_token = ''
|
||||
current_user.ip_address = ip_address()
|
||||
db.session.commit()
|
||||
next_page = request.args.get('next')
|
||||
|
|
|
@ -29,7 +29,7 @@ def show_post(post_id: int):
|
|||
if community.banned:
|
||||
abort(404)
|
||||
|
||||
sort = request.args.get('sort', 'top')
|
||||
sort = request.args.get('sort', 'hot')
|
||||
|
||||
# If nothing has changed since their last visit, return HTTP 304
|
||||
current_etag = f"{post.id}{sort}_{hash(post.last_active)}"
|
||||
|
@ -612,7 +612,7 @@ def post_delete(post_id: int):
|
|||
|
||||
for instance in post.community.following_instances():
|
||||
if instance.inbox and not instance_banned(instance.domain):
|
||||
send_to_remote_instance(instance.id, post.community.id, announce)
|
||||
send_to_remote_instance(instance.id, post.community.id, delete_activity)
|
||||
|
||||
return redirect(url_for('activitypub.community_profile', actor=community.ap_id if community.ap_id is not None else community.name))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue