@@ -25,7 +25,7 @@
You can now add your coding experience level to your account in order to receive more relevant content.
- Visit your settings to enter your experience level on a scale of 1-10.
+ Visit your settings to enter your experience level on a scale of 1-10.
You can change it any time in the future. Happy coding!
<% elsif @user.follows.size == 0 %>
@@ -34,7 +34,7 @@
Your digest is not yet customized. Follow the people and technologies on
- <%= community_name %> that interest you in order to receive the most relevant posts in your inbox.
+ <%= community_name %> that interest you in order to receive the most relevant posts in your inbox.
<% else %>
<% tip_rand = rand(5) %>
<% if tip_rand == 0 %>
diff --git a/app/views/mailers/notify_mailer/new_follower_email.html.erb b/app/views/mailers/notify_mailer/new_follower_email.html.erb
index d1c29adc6..1aedf8de5 100644
--- a/app/views/mailers/notify_mailer/new_follower_email.html.erb
+++ b/app/views/mailers/notify_mailer/new_follower_email.html.erb
@@ -5,10 +5,10 @@
<% end %>
When someone follows you on
- <%= community_name %>, your posts will be prioritized in their feed and notifications. The perks of popularity I suppose.
+ <%= community_name %>, your posts will be prioritized in their feed and notifications. The perks of popularity I suppose.
- <%= @mentioner.name %> just mentioned you in their <%= @mention.mentionable_type.downcase %>!
+ <%= @mentioner.name %> just mentioned you in their <%= @mention.mentionable_type.downcase %>!
You only get emails like this if you have not been active on
- dev.to/connect in the past day. You may disable this type of email in your settings.
+ <%= community_name %> Connect in the past day. You may disable this type of email in your settings.
diff --git a/app/views/mailers/notify_mailer/new_message_email.text.erb b/app/views/mailers/notify_mailer/new_message_email.text.erb
index 7b13a395a..55f25ecfe 100644
--- a/app/views/mailers/notify_mailer/new_message_email.text.erb
+++ b/app/views/mailers/notify_mailer/new_message_email.text.erb
@@ -1,3 +1,3 @@
<%= ActionController::Base.helpers.strip_tags(@message.message_html.html_safe) %>
-View now: https://dev.to/connect/@<%= @message.user.username %>
+View now: <%= app_url("/connect/@#{@message.user.username}") %>
diff --git a/app/views/mailers/notify_mailer/new_reply_email.html.erb b/app/views/mailers/notify_mailer/new_reply_email.html.erb
index 1825f4a53..2e89ceaeb 100644
--- a/app/views/mailers/notify_mailer/new_reply_email.html.erb
+++ b/app/views/mailers/notify_mailer/new_reply_email.html.erb
@@ -1,4 +1,4 @@
-
<%= link_to(@comment.user.name, "https://dev.to/#{@comment.user.username}") %> replied to you on <%= community_name %>
+
<%= link_to(@comment.user.name, "#{user_url(@comment.user)}/#{}") %> replied to you on <%= community_name %>
@@ -11,9 +11,9 @@
re: <%= @comment.commentable&.title || "Content No Longer Available" %>
Thanks for volunteering to be a <%= community_name %> tag moderator. Weโve added you as a moderator for
- <%= @tag_name %>. Youโre currently the only non-core <%= community_name %> member thatโs moderating this tag. Over time, weโll add additional mods to join you because we view moderation as a collaborative endeavor that benefits from the support of multiple people.
+ <%= @tag.name %>. Youโre currently the only non-core <%= community_name %> member thatโs moderating this tag. Over time, weโll add additional mods to join you because we view moderation as a collaborative endeavor that benefits from the support of multiple people.
As a tag moderator, you are now able to:
@@ -17,10 +17,10 @@
For details on how to access these features, visit our
- tag moderation page.
To aid in communication, weโve added you to a tag moderator
- <%= community_name %> Connect channel. You can use this channel to meet other tag moderators across site, and to coordinate with the <%= community_name %> team. When in doubt about how to exercise your new privileges, please ask!
+ "><%= community_name %> Connect channel. You can use this channel to meet other tag moderators across site, and to coordinate with the <%= community_name %> team. When in doubt about how to exercise your new privileges, please ask!
Tag moderation is still very much in beta, so weโll be making adjustments and expanding features over time as we receive feedback.
diff --git a/app/views/mailers/notify_mailer/trusted_role_email.html.erb b/app/views/mailers/notify_mailer/trusted_role_email.html.erb
index 41fed39d8..ab3802eb1 100644
--- a/app/views/mailers/notify_mailer/trusted_role_email.html.erb
+++ b/app/views/mailers/notify_mailer/trusted_role_email.html.erb
@@ -2,16 +2,16 @@
Hey <%= @user.name %>!
- This is an email to let you know that we've upgraded your account to have basic moderation privileges. This means you can apply "negative reactions" to posts as well as certain other actions which help us maintain a constructive community and uphold our code of conduct.
+ This is an email to let you know that we've upgraded your account to have basic moderation privileges. This means you can apply "negative reactions" to posts as well as certain other actions which help us maintain a constructive community and uphold our code of conduct.
There are no specific responsibilities with this new privilege except that you use it respectfully and empathetically. If for any reason you'd like to forego these new features, let us know.
- You'll occasionally get on-site notifications asking you to take an action. You are never required to take any actions and feel free to unsubscribe in your notification settings at any point without giving up the rest of the features.
+ You'll occasionally get on-site notifications asking you to take an action. You are never required to take any actions and feel free to unsubscribe in your notification settings at any point without giving up the rest of the features.
Happy Coding!
diff --git a/app/views/mailers/notify_mailer/trusted_role_email.text.erb b/app/views/mailers/notify_mailer/trusted_role_email.text.erb
index dbdcffbc5..21ad17695 100644
--- a/app/views/mailers/notify_mailer/trusted_role_email.text.erb
+++ b/app/views/mailers/notify_mailer/trusted_role_email.text.erb
@@ -6,7 +6,7 @@ There are no specific responsibilities with this new privilege except that you u
You'll occasionally get on-site notifications asking you to take an action. You are never required to take any actions and feel free to unsubscribe in your notification settings at any point without giving up the rest of the features.
-Visit https://dev.to/community-moderation for full details of what you can do with these new privileges.
+Visit <%= app_url("/community-moderation") %> for full details of what you can do with these new privileges.
Happy Coding!
diff --git a/app/views/mailers/notify_mailer/unread_notifications_email.html.erb b/app/views/mailers/notify_mailer/unread_notifications_email.html.erb
index 2f903be3e..9b4c11cc6 100644
--- a/app/views/mailers/notify_mailer/unread_notifications_email.html.erb
+++ b/app/views/mailers/notify_mailer/unread_notifications_email.html.erb
@@ -1,4 +1,4 @@
diff --git a/app/views/mailers/notify_mailer/unread_notifications_email.text.erb b/app/views/mailers/notify_mailer/unread_notifications_email.text.erb
index fd117beb8..204755293 100644
--- a/app/views/mailers/notify_mailer/unread_notifications_email.text.erb
+++ b/app/views/mailers/notify_mailer/unread_notifications_email.text.erb
@@ -1 +1 @@
-Visit https://dev.to/notifications to read all of your notifications
+Visit <%= app_url(notifications_path) %> to read all of your notifications
diff --git a/app/views/mailers/notify_mailer/video_upload_complete_email.html.erb b/app/views/mailers/notify_mailer/video_upload_complete_email.html.erb
index 4a2e2ee64..936c70e41 100644
--- a/app/views/mailers/notify_mailer/video_upload_complete_email.html.erb
+++ b/app/views/mailers/notify_mailer/video_upload_complete_email.html.erb
@@ -3,5 +3,5 @@
diff --git a/app/views/mailers/notify_mailer/video_upload_complete_email.text.erb b/app/views/mailers/notify_mailer/video_upload_complete_email.text.erb
index e9e445ba4..78a31dae7 100644
--- a/app/views/mailers/notify_mailer/video_upload_complete_email.text.erb
+++ b/app/views/mailers/notify_mailer/video_upload_complete_email.text.erb
@@ -1,3 +1,3 @@
Your video is finished being processed. Check it out here:
-https://dev.to<%= @article.path %>/edit
\ No newline at end of file
+<%= article_url(@article) %>/edit
diff --git a/app/views/pages/_terms_text.html.erb b/app/views/pages/_terms_text.html.erb
index f4f397903..42540df80 100644
--- a/app/views/pages/_terms_text.html.erb
+++ b/app/views/pages/_terms_text.html.erb
@@ -76,7 +76,7 @@
Users agree and certify that they have rights to share all content that they post on dev.to โ including, but not limited to, information posted in articles, discussions, and comments. This rule applies to prose, code snippets, collections of links, etc. Regardless of citation, users may not post copy and pasted content that does not belong to them. Users assume all risk for the content they post, including someone else's reliance on its accuracy, claims relating to intellectual property, or other legal rights. If you believe that a user has plagiarized content, misrepresented their identity, misappropriated work, or otherwise run afoul of DMCA regulations, please email
- yo@dev.to. <%= community_name %> may remove any content users post for any reason.
+ <%= SiteConfig.default_site_email %>. <%= community_name %> may remove any content users post for any reason.
@@ -92,7 +92,7 @@
- All uses of the <%= community_name %> logo, <%= community_name %> badges, brand slogans, iconography, and the like, may only be used with express permission from <%= community_name %>. <%= community_name %> reserves all rights, even if certain assets are included in <%= community_name %> open source projects. Please contact yo@dev.to with any questions or to request permission.
+ All uses of the <%= community_name %> logo, <%= community_name %> badges, brand slogans, iconography, and the like, may only be used with express permission from <%= community_name %>. <%= community_name %> reserves all rights, even if certain assets are included in <%= community_name %> open source projects. Please contact <%= SiteConfig.default_site_email %> with any questions or to request permission.
diff --git a/app/views/pages/code_of_conduct.html.erb b/app/views/pages/code_of_conduct.html.erb
index c35167433..aa88da17a 100644
--- a/app/views/pages/code_of_conduct.html.erb
+++ b/app/views/pages/code_of_conduct.html.erb
@@ -1,11 +1,11 @@
<% title "#{community_qualified_name} Code of Conduct" %>
<%= content_for :page_meta do %>
- " />
+
- " />
+
diff --git a/app/views/pages/editor_guide.html.erb b/app/views/pages/editor_guide.html.erb
index ff9f75f93..382333f12 100644
--- a/app/views/pages/editor_guide.html.erb
+++ b/app/views/pages/editor_guide.html.erb
@@ -2,7 +2,7 @@
<%= content_for :page_meta do %>
" />
-
+
<% end %>
diff --git a/spec/helpers/feedback_messages_helper_spec.rb b/spec/helpers/feedback_messages_helper_spec.rb
index eafb7755e..815c24271 100644
--- a/spec/helpers/feedback_messages_helper_spec.rb
+++ b/spec/helpers/feedback_messages_helper_spec.rb
@@ -15,7 +15,7 @@ RSpec.describe FeedbackMessagesHelper, type: :helper do
describe "#affected_email_details" do
it "have proper subject and body" do
- expect(helper.affected_email_details).to include(subject: "Courtesy Notice from DEV", body: a_string_starting_with("Hi"))
+ expect(helper.affected_email_details).to include(subject: "Courtesy Notice from #{ApplicationConfig['COMMUNITY_NAME']}", body: a_string_starting_with("Hi"))
end
end
end
diff --git a/spec/mailers/digest_mailer_spec.rb b/spec/mailers/digest_mailer_spec.rb
index 486ee60b4..422aed5f4 100644
--- a/spec/mailers/digest_mailer_spec.rb
+++ b/spec/mailers/digest_mailer_spec.rb
@@ -15,7 +15,7 @@ RSpec.describe DigestMailer, type: :mailer do
expect(email.subject).not_to be_nil
expect(email.to).to eq([user.email])
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Digest <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Digest <#{SiteConfig.default_site_email}>")
end
it "includes the tracking pixel" do
diff --git a/spec/mailers/notify_mailer_spec.rb b/spec/mailers/notify_mailer_spec.rb
index 324a22f3c..38ae7cbee 100644
--- a/spec/mailers/notify_mailer_spec.rb
+++ b/spec/mailers/notify_mailer_spec.rb
@@ -16,7 +16,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -40,12 +40,12 @@ RSpec.describe NotifyMailer, type: :mailer do
before { user2.follow(user) }
it "renders proper subject" do
- expect(email.subject).to eq("#{user2.name} just followed you on dev.to")
+ expect(email.subject).to eq("#{user2.name} just followed you on #{ApplicationConfig["COMMUNITY_NAME"]}")
end
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -73,7 +73,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -95,12 +95,12 @@ RSpec.describe NotifyMailer, type: :mailer do
let(:email) { described_class.unread_notifications_email(user) }
it "renders proper subject" do
- expect(email.subject).to eq("๐ฅ You have 0 unread notifications on dev.to")
+ expect(email.subject).to eq("๐ฅ You have 0 unread notifications on #{ApplicationConfig["COMMUNITY_NAME"]}")
end
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -127,7 +127,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -165,7 +165,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -262,7 +262,7 @@ RSpec.describe NotifyMailer, type: :mailer do
let(:email_params) do
{
email_to: user.email,
- email_subject: "DEV Report Status Update",
+ email_subject: "#{ApplicationConfig["COMMUNITY_NAME"]} Report Status Update",
email_body: "You've violated our code of conduct",
email_type: "Reporter",
feedback_message_id: feedback_message.id
@@ -271,12 +271,12 @@ RSpec.describe NotifyMailer, type: :mailer do
let(:email) { described_class.feedback_message_resolution_email(email_params) }
it "renders proper subject" do
- expect(email.subject).to eq("DEV Report Status Update")
+ expect(email.subject).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Report Status Update")
end
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -318,7 +318,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -345,7 +345,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -367,12 +367,12 @@ RSpec.describe NotifyMailer, type: :mailer do
let(:email) { described_class.account_deleted_email(user) }
it "renders proper subject" do
- expect(email.subject).to eq("dev.to - Account Deletion Confirmation")
+ expect(email.subject).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} - Account Deletion Confirmation")
end
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -399,7 +399,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -428,7 +428,7 @@ RSpec.describe NotifyMailer, type: :mailer do
describe "#tag_moderator_confirmation_email" do
let(:tag) { create(:tag) }
- let(:email) { described_class.tag_moderator_confirmation_email(user, tag.name) }
+ let(:email) { described_class.tag_moderator_confirmation_email(user, tag) }
it "renders proper subject" do
expect(email.subject).to eq("Congrats! You're the moderator for ##{tag.name}")
@@ -436,7 +436,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -464,7 +464,7 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(email.from).to eq([SiteConfig.default_site_email])
- expect(email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
@@ -495,9 +495,9 @@ RSpec.describe NotifyMailer, type: :mailer do
it "renders proper sender" do
expect(moderator_email.from).to eq([SiteConfig.default_site_email])
- expect(moderator_email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(moderator_email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
expect(member_email.from).to eq([SiteConfig.default_site_email])
- expect(member_email["from"].value).to eq("DEV Community <#{SiteConfig.default_site_email}>")
+ expect(member_email["from"].value).to eq("#{ApplicationConfig["COMMUNITY_NAME"]} Community <#{SiteConfig.default_site_email}>")
end
it "renders proper receiver" do
diff --git a/spec/mailers/previews/notify_mailer_preview.rb b/spec/mailers/previews/notify_mailer_preview.rb
index 859ee6e75..d0275450f 100644
--- a/spec/mailers/previews/notify_mailer_preview.rb
+++ b/spec/mailers/previews/notify_mailer_preview.rb
@@ -39,7 +39,7 @@ class NotifyMailerPreview < ActionMailer::Preview
end
def tag_moderator_confirmation_email
- NotifyMailer.tag_moderator_confirmation_email(User.first, "discuss")
+ NotifyMailer.tag_moderator_confirmation_email(User.first, Tag.find(1))
end
def trusted_role_email
@@ -62,7 +62,7 @@ class NotifyMailerPreview < ActionMailer::Preview
HEREDOC
params = {
email_to: @user.email,
- email_subject: "Courtesy notice from dev.to",
+ email_subject: "Courtesy notice from #{ApplicationConfig['COMMUNITY_NAME']}",
email_body: email_body,
email_type: "Reporter",
feedback_message_id: rand(100)
diff --git a/spec/workers/follows/send_email_notification_worker_spec.rb b/spec/workers/follows/send_email_notification_worker_spec.rb
index 1736334c8..4c12f08bc 100644
--- a/spec/workers/follows/send_email_notification_worker_spec.rb
+++ b/spec/workers/follows/send_email_notification_worker_spec.rb
@@ -36,7 +36,7 @@ RSpec.describe Follows::SendEmailNotificationWorker, type: :worker do
end
it "doesn't create an EmailMessage if it already exists" do
- subject = "#{user.username} just followed you on dev.to"
+ subject = "#{user.username} just followed you on #{ApplicationConfig['COMMUNITY_NAME']}"
EmailMessage.create!(user_id: user2.id, sent_at: Time.current, subject: subject)
worker.drain