No guarantees on functionality here, editing from a browser.
This commit is contained in:
parent
ed3dc10f79
commit
31a851e787
1 changed files with 3 additions and 0 deletions
|
|
@ -339,6 +339,9 @@ class User
|
|||
|
||||
def accept_invitation!(opts = {})
|
||||
if self.invited?
|
||||
log_string = "event=invitation_accepted username=#{opts[username]} "
|
||||
log_string << "inviter=#{invitations_to_me.first.from.diaspora_handle}" if invitations_to_me.first
|
||||
Rails.logger.info log_string
|
||||
self.setup(opts)
|
||||
|
||||
self.invitation_token = nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue