~fabrixxm/activist

b983580ac5ac2190cc52c79c5814f5d3eb6361ec — fabrixxm a month ago 8f95c79
web: fix '/action'
1 files changed, 5 insertions(+), 5 deletions(-)

M activist/web.py
M activist/web.py => activist/web.py +5 -5
@@ 379,17 379,17 @@ def action():
        if not cached:
            activitypub.save_recursive(objdata)

        return objdata
        return db.Object.from_data(objdata)
        

    redirect_url = request.form.get('redirect', url_for('network'))
    match action:
        case "like":
            objdata =  _get_object_data(request.form.get('obj'))
            activities.like(objdata)
            obj =  _get_object_data(request.form.get('obj'))
            activities.like(obj.data)
        case "reshare":
            objdata =  _get_object_data(request.form.get('obj'))
            activities.announce(objdata)
            obj =  _get_object_data(request.form.get('obj'))
            activities.announce(obj.data)
        case "post":
            repliedObjId = request.form.get('inReplyTo')
            repliedObjData = None