Commit edd1cd4a authored by david's avatar david

guid lookup

parent 210effc1
# Load diaspora environment
ENV['RAILS_ENV'] ||= "production"
ENV['DB'] ||= "postgres"
require_relative '../config/environment'
guid = ARGV[0].scan(/(.*?_.*?)_(.*?)\./)
user = Photo.find_by(random_string:
person = Person.find_by(id: user.author_id)
user = User.find_by(email: ARGV[1])
msg = "Match found for #{ARGV[0]} they are #{person.diaspora_handle}"
mail = Notifier.single_admin(msg.html_safe, user, :subject => "GUID Match for #{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