Fix links to the Web UI in notifications (#19981)
Most of the old routes are broken because of the /web removal.
This commit is contained in:
parent
8515bc7962
commit
e1227457f1
9 changed files with 9 additions and 9 deletions
|
@ -42,4 +42,4 @@
|
|||
= link_to a.remote_url, a.remote_url
|
||||
|
||||
%p.status-footer
|
||||
= link_to l(status.created_at), web_url("statuses/#{status.id}")
|
||||
= link_to l(status.created_at), web_url("@#{status.account.pretty_acct}/#{status.id}")
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
<% end %>
|
||||
> <%= raw word_wrap(extract_status_plain_text(status), break_sequence: "\n> ") %>
|
||||
|
||||
<%= raw t('application_mailer.view')%> <%= web_url("statuses/#{status.id}") %>
|
||||
<%= raw t('application_mailer.view')%> <%= web_url("@#{status.account.pretty_acct}/#{status.id}") %>
|
||||
|
|
|
@ -41,5 +41,5 @@
|
|||
%tbody
|
||||
%tr
|
||||
%td.button-primary
|
||||
= link_to web_url("statuses/#{@status.id}") do
|
||||
= link_to web_url("@#{@status.account.pretty_acct}/#{@status.id}") do
|
||||
%span= t 'application_mailer.view_status'
|
||||
|
|
|
@ -39,5 +39,5 @@
|
|||
%tbody
|
||||
%tr
|
||||
%td.button-primary
|
||||
= link_to web_url("accounts/#{@account.id}") do
|
||||
= link_to web_url("@#{@account.pretty_acct}") do
|
||||
%span= t 'application_mailer.view_profile'
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
<%= raw t('notification_mailer.follow.body', name: @account.pretty_acct) %>
|
||||
|
||||
<%= raw t('application_mailer.view')%> <%= web_url("accounts/#{@account.id}") %>
|
||||
<%= raw t('application_mailer.view')%> <%= web_url("@#{@account.pretty_acct}") %>
|
||||
|
|
|
@ -41,5 +41,5 @@
|
|||
%tbody
|
||||
%tr
|
||||
%td.button-primary
|
||||
= link_to web_url("statuses/#{@status.id}") do
|
||||
= link_to web_url("@#{@status.account.pretty_acct}/#{@status.id}") do
|
||||
%span= t 'notification_mailer.mention.action'
|
||||
|
|
|
@ -41,5 +41,5 @@
|
|||
%tbody
|
||||
%tr
|
||||
%td.button-primary
|
||||
= link_to web_url("statuses/#{@status.id}") do
|
||||
= link_to web_url("@#{@status.account.pretty_acct}/#{@status.id}") do
|
||||
%span= t 'application_mailer.view_status'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue