mentions: send dmails from DanbooruBot.

This commit is contained in:
evazion
2017-02-25 22:26:20 -06:00
parent 6e3ddb6ed6
commit 6994231801

View File

@@ -50,18 +50,7 @@ module Mentionable
end
bodies.each do |name, text|
user = User.find_by_name(name)
if user
dmail = Dmail.new(
from_id: from_id,
to_id: user.id,
title: title,
body: text
)
dmail.owner_id = user.id
dmail.save
end
Dmail.create_automated(to_name: name, title: title, body: body)
end
end
end