Merge branch 'stable' into develop
This commit is contained in:
commit
230ec02ad7
4 changed files with 7 additions and 3 deletions
|
|
@ -161,6 +161,8 @@ before.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
* The sender's diaspora-ID is now shown in invitation mails [#6817](https://github.com/diaspora/diaspora/pull/6817)
|
||||||
|
|
||||||
# 0.5.8.0
|
# 0.5.8.0
|
||||||
|
|
||||||
## Refactor
|
## Refactor
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class InvitationsController < ApplicationController
|
||||||
else
|
else
|
||||||
params[:invitation_code]
|
params[:invitation_code]
|
||||||
end
|
end
|
||||||
|
@inviter = user || InvitationCode.where(id: params[:invitation_code]).first.try(:user)
|
||||||
if @invitation_code.present?
|
if @invitation_code.present?
|
||||||
render 'notifier/invite', :layout => false
|
render 'notifier/invite', :layout => false
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
<%= t('.message', :invite_url => invite_code_url(@invitation_code), :diasporafoundation_url => 'https://diasporafoundation.org/') %>
|
<%= t('.message', :invite_url => invite_code_url(@invitation_code), :diasporafoundation_url => 'https://diasporafoundation.org/', :diaspora_id => @inviter.try(:diaspora_handle)) %>
|
||||||
|
|
|
||||||
|
|
@ -851,12 +851,14 @@ en:
|
||||||
message: |-
|
message: |-
|
||||||
Hello!
|
Hello!
|
||||||
|
|
||||||
You have been invited to join diaspora*!
|
You have been invited to join diaspora* by %{diaspora_id}!
|
||||||
|
|
||||||
Click this link to get started
|
Click this link to get started
|
||||||
|
|
||||||
[%{invite_url}][1]
|
[%{invite_url}][1]
|
||||||
|
|
||||||
|
Or you can add %{diaspora_id} to your contacts if you already have an account.
|
||||||
|
|
||||||
|
|
||||||
Love,
|
Love,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue