mirror of
https://github.com/neocities/neocities.git
synced 2025-05-14 16:37:20 +02:00
tipping: only show tipping sites with paypal/btc input
This commit is contained in:
parent
42b3f25b11
commit
3dc38bfc5a
3 changed files with 6 additions and 1 deletions
|
@ -1356,6 +1356,10 @@ class Site < Sequel::Model
|
|||
!site_files_dataset.where(path: /^\/?index.html$/).where(sha1_hash: EMPTY_FILE_HASH).first.nil?
|
||||
end
|
||||
|
||||
def tipping_enabled?
|
||||
tipping_enabled && (!tipping_paypal.blank? || !tipping_bitcoin.blank?)
|
||||
end
|
||||
|
||||
def classify(path)
|
||||
return nil unless classification_allowed? path
|
||||
#$classifier.classify process_for_classification(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue