Commit 25054069 authored by dmorley's avatar dmorley
Browse files

updates

parent 8f00ee16
......@@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base
rescue_from ActionController::InvalidAuthenticityToken do
if user_signed_in?
logger.warn "#{current_user.diaspora_handle} CSRF token fail. referer: #{request.referer || 'empty'}"
Workers::Mail::CsrfTokenFail.perform_async(current_user.id)
#Workers::Mail::CsrfTokenFail.perform_async(current_user.id)
sign_out current_user
end
flash[:error] = I18n.t("error_messages.csrf_token_fail")
......
:javascript
$(document).ready(function() {progress(75, $('#progressBar'));});
$(document).ready(function() {progress(76, $('#progressBar'));});
.contentdonations.sidebar.info-bar
2021 Fundraiser is going, goal is $1500. That keeps diasporg ad free and running for a year.
......
#!/home/david/.rvm/rubies/ruby-2.6.5/bin/ruby
#!/home/david/.rvm/rubies/ruby-2.6.6/bin/ruby
# Load diaspora environment
ENV['RAILS_ENV'] ||= "production"
......@@ -7,3 +7,6 @@ require_relative '../config/environment'
user = User.find_by(email: ARGV[0])
user.disable_mail = true
user.save
user = User.find_by(email: ARGV[1])
msg = "email for handle #{ARGV[0]} email disabled"
mail = Notifier.single_admin(msg.html_safe, user, :subject => "Email diasbled #{ARGV[0]}").deliver_now
#!/home/david/.rvm/rubies/ruby-2.6.5/bin/ruby
#!/home/david/.rvm/rubies/ruby-2.6.6/bin/ruby
# Load diaspora environment
ENV['RAILS_ENV'] ||= "production"
......
#!/home/david/.rvm/rubies/ruby-2.6.5/bin/ruby
#!/home/david/.rvm/rubies/ruby-2.6.6/bin/ruby
# List of spam accounts
spam_accounts = ARGV[0]
......@@ -70,3 +70,7 @@ if always_delete
Post.where(author_id: remote_spammers.map(&:id)).each(&:destroy)
Person.where(id: remote_spammers.map(&:id)).each(&:destroy)
end
user = User.find_by(email: ARGV[1])
msg = "account #{ARGV[0]} destroyed"
mail = Notifier.single_admin(msg.html_safe, user, :subject => "Account destroyed #{ARGV[0]}").deliver_now
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment