Browse Source

"Reblog" -> "boost" in more places

A couple of places were using "reblog" rather than "boost" - this updates them to match the web UI
closed-social-glitch-2
Jessica Stokes 7 years ago
parent
commit
bb033c1d37
No known key found for this signature in database GPG Key ID: E3DE5BE038F70FE9
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      app/assets/javascripts/components/features/notifications/components/notification.jsx
  2. +2
    -2
      config/locales/en.yml
  3. +2
    -2
      spec/mailers/notification_mailer_spec.rb

+ 1
- 1
app/assets/javascripts/components/features/notifications/components/notification.jsx View File

@ -71,7 +71,7 @@ const Notification = React.createClass({
<i className='fa fa-fw fa-retweet' style={{ color: '#2b90d9' }} />
</div>
<FormattedMessage id='notification.reblog' defaultMessage='{name} reblogged your status' values={{ name: link }} />
<FormattedMessage id='notification.reblog' defaultMessage='{name} boosted your status' values={{ name: link }} />
</div>
<StatusContainer id={notification.get('status')} muted={true} />

+ 2
- 2
config/locales/en.yml View File

@ -67,8 +67,8 @@ en:
body: 'You were mentioned by %{name} in:'
subject: You were mentioned by %{name}
reblog:
body: 'Your status was reblogged by %{name}:'
subject: "%{name} reblogged your status"
body: 'Your status was boosted by %{name}:'
subject: "%{name} boosted your status"
pagination:
next: Next
prev: Prev

+ 2
- 2
spec/mailers/notification_mailer_spec.rb View File

@ -53,12 +53,12 @@ RSpec.describe NotificationMailer, type: :mailer do
let(:mail) { NotificationMailer.reblog(own_status.account, Notification.create!(account: receiver.account, activity: reblog)) }
it "renders the headers" do
expect(mail.subject).to eq("bob reblogged your status")
expect(mail.subject).to eq("bob boosted your status")
expect(mail.to).to eq([receiver.email])
end
it "renders the body" do
expect(mail.body.encoded).to match("Your status was reblogged by bob")
expect(mail.body.encoded).to match("Your status was boosted by bob")
end
end

Loading…
Cancel
Save