Fix 500 when pubkey is nil
This commit is contained in:
parent
8aa3ca9e23
commit
7df56479a4
@ -6,7 +6,7 @@ class WebKeyDirectoryController < WellKnownController
|
|||||||
@user = User.find_by(cn: params[:l].downcase)
|
@user = User.find_by(cn: params[:l].downcase)
|
||||||
|
|
||||||
if @user.nil? ||
|
if @user.nil? ||
|
||||||
@user.pgp_pubkey.empty? ||
|
@user.pgp_pubkey.blank? ||
|
||||||
!@user.pgp_pubkey_contains_user_address?
|
!@user.pgp_pubkey_contains_user_address?
|
||||||
http_status :not_found and return
|
http_status :not_found and return
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user