From 8331cb85b5b695d06e0b7ecfe537ff57ddff291d Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Fri, 6 Sep 2024 09:45:40 -0500 Subject: [PATCH] update btc address --- app/create.rb | 11 ++++++++++- public/img/bitcoin.png | Bin 387 -> 0 bytes views/donate.erb | 9 ++------- 3 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 public/img/bitcoin.png diff --git a/app/create.rb b/app/create.rb index 00061f74..9788823a 100644 --- a/app/create.rb +++ b/app/create.rb @@ -129,7 +129,16 @@ post '/create' do }) end - @site.save + begin + @site.save + rescue Sequel::UniqueConstraintViolation => e + if e.message =~ /username.+already exists/ + flash[:error] = 'Username already exists.' + return {result: 'error'}.to_json + end + + raise e + end unless education_whitelisted? @site.send_email( diff --git a/public/img/bitcoin.png b/public/img/bitcoin.png deleted file mode 100644 index e189e28b93d8d980b6e3300a9e3cf0f6a6cd00af..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 387 zcmV-}0et?6P) z@sE~>6a8*^w>5W63d@5KkG3ud8+;9lE@b8!>K%9u^<()uXbL71<{7*j-hcPCvv-x6a9fejw0{qCp?JcL5@)4Y{i7c z%=Ox0N=9u$sI|<3UE}24Fd

Bitcoin:

-

-

1MPYyfoWK8CkAzhLzLLtZGa9dwEGT5dm2T

- -

Filecoin

-

f1tub53j4dglc5bcgn2djaqljfkphiw6dem67ev2a

-

(more info about Filecoin)

+

3HPuhRTz4fMyMRaLFHEQ5E2rrxGic8CXJQ

Thanks. You are great! Now go and make an awesome web site!

- +