Skip to content

Commit

Permalink
Forbid bidding on one's own auction.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibz committed Feb 22, 2024
1 parent 709978a commit 63f45a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ def post_auction_bid(merchant_pubkey, auction_event_id):

birdwatcher = get_birdwatcher()

if request.json['pubkey'] == merchant_pubkey:
if request.json['pubkey'] == merchant_pubkey or request.json['pubkey'] == merchant.nostr_public_key:
message = "Cannot bid on one's own auction!"
birdwatcher.publish_bid_status(auction, request.json['id'], 'rejected', message)
return jsonify({'message': message}), 400
Expand Down

0 comments on commit 63f45a5

Please sign in to comment.