-
+
<%- if show_username_on_post(post) %>
<%= post.user.username %>
<% end %>
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 20c77e45352..d57c7ffe36b 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -1519,7 +1519,7 @@ en:
"2_8": 'You will receive notifications because you are tracking this category.'
"2_4": 'You will receive notifications because you posted a reply to this topic.'
"2_2": 'You will receive notifications because you are tracking this topic.'
- "2": 'You will receive notifications because you read this topic.'
+ "2": 'You will receive notifications because you read this topic.'
"1_2": 'You will be notified if someone mentions your @name or replies to you.'
"1": 'You will be notified if someone mentions your @name or replies to you.'
"0_7": 'You are ignoring all notifications in this category.'
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 34de73d7b89..e042e5742b2 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -138,7 +138,7 @@ en:
invite:
not_found: "Your invite token is invalid. Please contact the site's administrator."
- user_exists: "There's no need to invite %{email}, they already have an account!"
+ user_exists: "There's no need to invite %{email}, they already have an account!"
bulk_invite:
file_should_be_csv: "The uploaded file should be of csv format."
@@ -329,7 +329,7 @@ en:
Have you considered replying to *other* people in the discussion, too? A great discussion involves many voices and perspectives.
- If you’d like to continue your conversation with this particular user at length, [send them a personal message](/users/%{reply_username}).
+ If you’d like to continue your conversation with this particular user at length, [send them a personal message](/u/%{reply_username}).
too_many_replies: |
### You have reached the reply limit for this topic
@@ -398,7 +398,7 @@ en:
taken: is already in use by another emoji
user_profile:
- no_info_me: "
"
+ no_info_me: "
"
no_info_other: "
%{name} hasn't entered anything in the About Me field of their profile yet
"
vip_category_name: "Lounge"
@@ -1770,7 +1770,7 @@ en:
Thanks for accepting your invitation to %{site_name} -- welcome!
Click this link to choose a password now:
- %{base_url}/users/password-reset/%{email_token}
+ %{base_url}/u/password-reset/%{email_token}
(If the link above has expired, choose "I forgot my password" when logging in with your email address.)
@@ -2552,7 +2552,7 @@ en:
If it was not you, you can safely ignore this email.
Click the following link to choose a new password:
- %{base_url}/users/password-reset/%{email_token}
+ %{base_url}/u/password-reset/%{email_token}
set_password:
title: "Set Password"
@@ -2563,7 +2563,7 @@ en:
If you did not make this request, you can safely ignore this email.
Click the following link to choose a password:
- %{base_url}/users/password-reset/%{email_token}
+ %{base_url}/u/password-reset/%{email_token}
admin_login:
title: "Admin Login"
@@ -2574,7 +2574,7 @@ en:
If you did not make this request, you can safely ignore this email.
Click the following link to login:
- %{base_url}/users/admin-login/%{email_token}
+ %{base_url}/u/admin-login/%{email_token}
account_created:
title: "Account Created"
@@ -2583,7 +2583,7 @@ en:
A new account was created for you at %{site_name}
Click the following link to choose a password for your new account:
- %{base_url}/users/password-reset/%{email_token}
+ %{base_url}/u/password-reset/%{email_token}
confirm_new_email:
title: "Confirm New Email"
@@ -2591,7 +2591,7 @@ en:
text_body_template: |
Confirm your new email address for %{site_name} by clicking on the following link:
- %{base_url}/users/authorize-email/%{email_token}
+ %{base_url}/u/authorize-email/%{email_token}
confirm_old_email:
title: "Confirm Old Email"
@@ -2603,7 +2603,7 @@ en:
Confirm your current email address for %{site_name} by clicking on the following link:
- %{base_url}/users/authorize-email/%{email_token}
+ %{base_url}/u/authorize-email/%{email_token}
notify_old_email:
title: "Notify Old Email"
@@ -2626,7 +2626,7 @@ en:
A staff member approved your account on %{site_name}.
Click the following link to confirm and activate your new account:
- %{base_url}/users/activate-account/%{email_token}
+ %{base_url}/u/activate-account/%{email_token}
If the above link is not clickable, try copying and pasting it into the address bar of your web browser.
@@ -2645,7 +2645,7 @@ en:
Welcome to %{site_name}!
Click the following link to confirm and activate your new account:
- %{base_url}/users/activate-account/%{email_token}
+ %{base_url}/u/activate-account/%{email_token}
If the above link is not clickable, try copying and pasting it into the address bar of your web browser.
diff --git a/config/routes.rb b/config/routes.rb
index a20d2cd576a..b59bf3278e7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -315,7 +315,7 @@ Discourse::Application.routes.draw do
post "u/read-faq" => "users#read_faq"
get "u/search/users" => "users#search_users"
get "u/account-created/" => "users#account_created"
- get "u/password-reset/:token" => "users#password_reset"
+ get "u/password-reset/:token" => "users#password_reset", as: 'password_reset_token'
get "u/confirm-email-token/:token" => "users#confirm_email_token", constraints: { format: 'json' }
put "u/password-reset/:token" => "users#password_reset"
get "u/activate-account/:token" => "users#activate_account"
diff --git a/lib/composer_messages_finder.rb b/lib/composer_messages_finder.rb
index 41064a632aa..fa3c952abdc 100644
--- a/lib/composer_messages_finder.rb
+++ b/lib/composer_messages_finder.rb
@@ -76,7 +76,7 @@ class ComposerMessagesFinder
{
id: 'avatar',
templateName: 'education',
- body: PrettyText.cook(I18n.t('education.avatar', profile_path: "/users/#{@user.username_lower}"))
+ body: PrettyText.cook(I18n.t('education.avatar', profile_path: "/u/#{@user.username_lower}"))
}
end
diff --git a/lib/system_message.rb b/lib/system_message.rb
index d95cbf00be7..553f3b93385 100644
--- a/lib/system_message.rb
+++ b/lib/system_message.rb
@@ -60,7 +60,7 @@ class SystemMessage
{
site_name: SiteSetting.title,
username: @recipient.username,
- user_preferences_url: "#{Discourse.base_url}/users/#{@recipient.username_lower}/preferences",
+ user_preferences_url: "#{Discourse.base_url}/u/#{@recipient.username_lower}/preferences",
new_user_tips: I18n.t('system_messages.usage_tips.text_body_template', base_url: Discourse.base_url),
site_password: "",
base_url: Discourse.base_url,
diff --git a/lib/tasks/integration.rake b/lib/tasks/integration.rake
index c2f6b8a304e..1317eb6b1d8 100644
--- a/lib/tasks/integration.rake
+++ b/lib/tasks/integration.rake
@@ -6,7 +6,7 @@ task 'integration:create_fixtures' => :environment do
fixtures = {
discovery: ["/latest.json", "/categories.json", "/c/bug/l/latest.json"],
topic: ["/t/280.json"],
- user: ["/users/eviltrout.json",
+ user: ["/u/eviltrout.json",
"/user_actions.json",
"/topics/created-by/eviltrout.json"],
static: ["/faq", '/tos', '/privacy'],
diff --git a/script/bench.rb b/script/bench.rb
index b4b7514a39b..27100005e64 100644
--- a/script/bench.rb
+++ b/script/bench.rb
@@ -194,7 +194,7 @@ begin
["categories", "/categories"],
["home", "/"],
["topic", "/t/oh-how-i-wish-i-could-shut-up-like-a-tunnel-for-so/69"]
- # ["user", "/users/admin1/activity"],
+ # ["user", "/u/admin1/activity"],
]
tests = tests.map{|k,url| ["#{k}_admin", "#{url}#{append}"]} + tests
diff --git a/script/import_scripts/mylittleforum.rb b/script/import_scripts/mylittleforum.rb
index 795148c7d4d..fbec5dad462 100644
--- a/script/import_scripts/mylittleforum.rb
+++ b/script/import_scripts/mylittleforum.rb
@@ -98,8 +98,6 @@ EOM
def import_users
puts '', "creating users"
- username = nil
-
total_count = mysql_query("SELECT count(*) count FROM #{TABLE_PREFIX}userdata WHERE last_login > '#{IMPORT_AFTER}';").first['count']
batches(BATCH_SIZE) do |offset|
@@ -404,7 +402,7 @@ EOM
User.find_each do |u|
ucf = u.custom_fields
if ucf && ucf["import_id"] && ucf["import_username"]
- Permalink.create( url: "#{BASE}/user-id-#{ucf['import_id']}.html", external_url: "/users/#{u.username}" ) rescue nil
+ Permalink.create( url: "#{BASE}/user-id-#{ucf['import_id']}.html", external_url: "/u/#{u.username}" ) rescue nil
print '.'
end
end
diff --git a/spec/components/post_creator_spec.rb b/spec/components/post_creator_spec.rb
index b7368c78515..87569632382 100644
--- a/spec/components/post_creator_spec.rb
+++ b/spec/components/post_creator_spec.rb
@@ -121,8 +121,8 @@ describe PostCreator do
# 2 for topic, one to notify of new topic another for tracking state
expect(messages.map{|m| m.channel}.sort).to eq([ "/new",
- "/users/#{admin.username}",
- "/users/#{admin.username}",
+ "/u/#{admin.username}",
+ "/u/#{admin.username}",
"/unread/#{admin.id}",
"/unread/#{admin.id}",
"/latest",
@@ -153,7 +153,7 @@ describe PostCreator do
read = messages.find{|m| m.channel == "/unread/#{p.user_id}"}
expect(read).not_to eq(nil)
- user_action = messages.find{|m| m.channel == "/users/#{p.user.username}"}
+ user_action = messages.find{|m| m.channel == "/u/#{p.user.username}"}
expect(user_action).not_to eq(nil)
expect(messages.length).to eq(5)
diff --git a/spec/components/pretty_text_spec.rb b/spec/components/pretty_text_spec.rb
index 2d973fd3b62..45655f92fe7 100644
--- a/spec/components/pretty_text_spec.rb
+++ b/spec/components/pretty_text_spec.rb
@@ -323,9 +323,9 @@ HTML
end
it "adds base url to relative links" do
- html = "
@wiseguy, @trollol what do you guys think?
"
+ html = "
@wiseguy, @trollol what do you guys think?
"
output = described_class.format_for_email(html, post)
- expect(output).to eq("
@wiseguy, @trollol what do you guys think?
")
+ expect(output).to eq("
@wiseguy, @trollol what do you guys think?
")
end
it "doesn't change external absolute links" do
diff --git a/spec/integration/users_spec.rb b/spec/integration/users_spec.rb
index 7350c87ca5f..46ea6bf6617 100644
--- a/spec/integration/users_spec.rb
+++ b/spec/integration/users_spec.rb
@@ -6,7 +6,7 @@ RSpec.describe "Users" do
describe "viewing a user" do
it "should be able to view a user" do
- get "/users/#{user.username}"
+ get "/u/#{user.username}"
expect(response).to be_success
expect(response.body).to include(user.username)
@@ -18,7 +18,7 @@ RSpec.describe "Users" do
end
it "should be able to view a user" do
- get "/users/#{user.username}"
+ get "/u/#{user.username}"
expect(response).to be_success
expect(response.body).to include(user.username)
@@ -32,7 +32,7 @@ RSpec.describe "Users" do
end
it "should be able to update a user" do
- put "/users/#{user.username}.json", { name: 'test.test' }
+ put "/u/#{user.username}.json", { name: 'test.test' }
expect(response).to be_success
expect(user.reload.name).to eq('test.test')
@@ -44,7 +44,7 @@ RSpec.describe "Users" do
end
it "should be able to update a user" do
- put "/users/#{user.username}.json", { name: 'testing123' }
+ put "/u/#{user.username}.json", { name: 'testing123' }
expect(response).to be_success
expect(user.reload.name).to eq('testing123')
diff --git a/spec/models/topic_link_spec.rb b/spec/models/topic_link_spec.rb
index 6eb802dd0cd..9ee96750f24 100644
--- a/spec/models/topic_link_spec.rb
+++ b/spec/models/topic_link_spec.rb
@@ -137,7 +137,7 @@ http://b.com/#{'a'*500}
end
context "link to a user on discourse" do
- let(:post) { topic.posts.create(user: user, raw: "
user") }
+ let(:post) { topic.posts.create(user: user, raw: "
user") }
before do
TopicLink.extract_from(post)
end
diff --git a/test/javascripts/acceptance/password-reset-test.js.es6 b/test/javascripts/acceptance/password-reset-test.js.es6
index 7c627069c27..c8eaf488a2d 100644
--- a/test/javascripts/acceptance/password-reset-test.js.es6
+++ b/test/javascripts/acceptance/password-reset-test.js.es6
@@ -30,7 +30,7 @@ acceptance("Password Reset", {
test("Password Reset Page", () => {
PreloadStore.store('password_reset', {is_developer: false});
- visit("/users/password-reset/myvalidtoken");
+ visit("/u/password-reset/myvalidtoken");
andThen(() => {
ok(exists(".password-reset input"), "shows the input");
});
diff --git a/test/javascripts/acceptance/plugin-outlet-connector-class-test.js.es6 b/test/javascripts/acceptance/plugin-outlet-connector-class-test.js.es6
index 82b34f7ca7c..60a85e3cc77 100644
--- a/test/javascripts/acceptance/plugin-outlet-connector-class-test.js.es6
+++ b/test/javascripts/acceptance/plugin-outlet-connector-class-test.js.es6
@@ -35,7 +35,7 @@ acceptance("Plugin Outlet - Connector Class", {
});
test("Renders a template into the outlet", assert => {
- visit("/users/eviltrout");
+ visit("/u/eviltrout");
andThen(() => {
assert.ok(find('.user-profile-primary-outlet.hello').length === 1, 'it has class names');
assert.ok(!find('.user-profile-primary-outlet.dont-render').length, "doesn't render");
diff --git a/test/javascripts/acceptance/plugin-outlet-multi-template-test.js.es6 b/test/javascripts/acceptance/plugin-outlet-multi-template-test.js.es6
index 0379b2d8e54..b74b46395be 100644
--- a/test/javascripts/acceptance/plugin-outlet-multi-template-test.js.es6
+++ b/test/javascripts/acceptance/plugin-outlet-multi-template-test.js.es6
@@ -19,7 +19,7 @@ acceptance("Plugin Outlet - Multi Template", {
});
test("Renders a template into the outlet", assert => {
- visit("/users/eviltrout");
+ visit("/u/eviltrout");
andThen(() => {
assert.ok(find('.user-profile-primary-outlet.hello').length === 1, 'it has class names');
assert.ok(find('.user-profile-primary-outlet.goodbye').length === 1, 'it has class names');
diff --git a/test/javascripts/acceptance/plugin-outlet-single-template-test.js.es6 b/test/javascripts/acceptance/plugin-outlet-single-template-test.js.es6
index ee236ed8518..63a05b36296 100644
--- a/test/javascripts/acceptance/plugin-outlet-single-template-test.js.es6
+++ b/test/javascripts/acceptance/plugin-outlet-single-template-test.js.es6
@@ -14,7 +14,7 @@ acceptance("Plugin Outlet - Single Template", {
});
test("Renders a template into the outlet", assert => {
- visit("/users/eviltrout");
+ visit("/u/eviltrout");
andThen(() => {
assert.ok(find('.user-profile-primary-outlet.hello').length === 1, 'it has class names');
assert.equal(find('.hello-username').text(), 'eviltrout', 'it renders into the outlet');
diff --git a/test/javascripts/acceptance/preferences-test.js.es6 b/test/javascripts/acceptance/preferences-test.js.es6
index 9c597df2e0a..61fccd74dd5 100644
--- a/test/javascripts/acceptance/preferences-test.js.es6
+++ b/test/javascripts/acceptance/preferences-test.js.es6
@@ -2,11 +2,11 @@ import { acceptance } from "helpers/qunit-helpers";
acceptance("User Preferences", { loggedIn: true });
test("update some fields", () => {
- visit("/users/eviltrout/preferences");
+ visit("/u/eviltrout/preferences");
andThen(() => {
ok($('body.user-preferences-page').length, "has the body class");
- equal(currentURL(), '/users/eviltrout/preferences', "it doesn't redirect");
+ equal(currentURL(), '/u/eviltrout/preferences', "it doesn't redirect");
ok(exists('.user-preferences'), 'it shows the preferences');
});
@@ -20,21 +20,21 @@ test("update some fields", () => {
});
test("username", () => {
- visit("/users/eviltrout/preferences/username");
+ visit("/u/eviltrout/preferences/username");
andThen(() => {
ok(exists("#change_username"), "it has the input element");
});
});
test("about me", () => {
- visit("/users/eviltrout/preferences/about-me");
+ visit("/u/eviltrout/preferences/about-me");
andThen(() => {
ok(exists(".raw-bio"), "it has the input element");
});
});
test("email", () => {
- visit("/users/eviltrout/preferences/email");
+ visit("/u/eviltrout/preferences/email");
andThen(() => {
ok(exists("#change-email"), "it has the input element");
});
diff --git a/test/javascripts/acceptance/search-test.js.es6 b/test/javascripts/acceptance/search-test.js.es6
index bb2b9892b73..b80552708bc 100644
--- a/test/javascripts/acceptance/search-test.js.es6
+++ b/test/javascripts/acceptance/search-test.js.es6
@@ -40,7 +40,7 @@ test("search scope checkbox", () => {
});
click('#search-button');
- visit("/users/eviltrout");
+ visit("/u/eviltrout");
click('#search-button');
andThen(() => {
ok(exists('.search-context input:checked'), 'scope to user checkbox is checked');
diff --git a/test/javascripts/acceptance/user-anonymous-test.js.es6 b/test/javascripts/acceptance/user-anonymous-test.js.es6
index 2d93a45c3b4..ae9b7c149f4 100644
--- a/test/javascripts/acceptance/user-anonymous-test.js.es6
+++ b/test/javascripts/acceptance/user-anonymous-test.js.es6
@@ -16,7 +16,7 @@ function hasTopicList() {
}
test("Root URL", () => {
- visit("/users/eviltrout");
+ visit("/u/eviltrout");
andThen(() => {
ok($('body.user-summary-page').length, "has the body class");
equal(currentPath(), 'user.summary', "it defaults to summary");
@@ -24,21 +24,21 @@ test("Root URL", () => {
});
test("Filters", () => {
- visit("/users/eviltrout/activity");
+ visit("/u/eviltrout/activity");
andThen(() => {
ok($('body.user-activity-page').length, "has the body class");
});
hasStream();
- visit("/users/eviltrout/activity/topics");
+ visit("/u/eviltrout/activity/topics");
hasTopicList();
- visit("/users/eviltrout/activity/replies");
+ visit("/u/eviltrout/activity/replies");
hasStream();
});
test("Badges", () => {
- visit("/users/eviltrout/badges");
+ visit("/u/eviltrout/badges");
andThen(() => {
ok($('body.user-badges-page').length, "has the body class");
ok(exists(".user-badges-list .badge-card"), "shows a badge");
@@ -46,7 +46,7 @@ test("Badges", () => {
});
test("Restricted Routes", () => {
- visit("/users/eviltrout/preferences");
+ visit("/u/eviltrout/preferences");
andThen(() => {
equal(currentURL(), '/u/eviltrout/activity', "it redirects from preferences");
diff --git a/test/javascripts/acceptance/user-test.js.es6 b/test/javascripts/acceptance/user-test.js.es6
index 0271a9977a9..84269cbe08c 100644
--- a/test/javascripts/acceptance/user-test.js.es6
+++ b/test/javascripts/acceptance/user-test.js.es6
@@ -3,28 +3,28 @@ import { acceptance } from "helpers/qunit-helpers";
acceptance("User", {loggedIn: true});
test("Invites", () => {
- visit("/users/eviltrout/invited/pending");
+ visit("/u/eviltrout/invited/pending");
andThen(() => {
ok($('body.user-invites-page').length, "has the body class");
});
});
test("Messages", () => {
- visit("/users/eviltrout/messages");
+ visit("/u/eviltrout/messages");
andThen(() => {
ok($('body.user-messages-page').length, "has the body class");
});
});
test("Notifications", () => {
- visit("/users/eviltrout/notifications");
+ visit("/u/eviltrout/notifications");
andThen(() => {
ok($('body.user-notifications-page').length, "has the body class");
});
});
test("Root URL - Viewing Self", () => {
- visit("/users/eviltrout");
+ visit("/u/eviltrout");
andThen(() => {
ok($('body.user-activity-page').length, "has the body class");
equal(currentPath(), 'user.userActivity.index', "it defaults to activity");
diff --git a/test/javascripts/fixtures/group-fixtures.js.es6 b/test/javascripts/fixtures/group-fixtures.js.es6
index 92ecb7c48be..a55d8303cb3 100644
--- a/test/javascripts/fixtures/group-fixtures.js.es6
+++ b/test/javascripts/fixtures/group-fixtures.js.es6
@@ -440,7 +440,7 @@ export default {
},
{
"id":94544,
- "cooked":"
@techapj fixed this for 1.2.
",
+ "cooked":"
@techapj fixed this for 1.2.
",
"created_at":"2015-01-23T05:49:35.881Z",
"title":"After sign-in, I'm not redirected to the conversation",
"url":"/t/after-sign-in-im-not-redirected-to-the-conversation/17753/8",
@@ -540,7 +540,7 @@ export default {
},
{
"id":94542,
- "cooked":"
Hmm that looks like a bug, @techapj can you have a look?
",
+ "cooked":"
Hmm that looks like a bug, @techapj can you have a look?
",
"created_at":"2015-01-23T05:43:55.602Z",
"title":"RSS is not valid",
"url":"/t/rss-is-not-valid/24338/2",
@@ -590,7 +590,7 @@ export default {
},
{
"id":94522,
- "cooked":"
Oh I see. @zogstrip can you have a look?
",
+ "cooked":"
Oh I see. @zogstrip can you have a look?
",
"created_at":"2015-01-23T03:00:20.485Z",
"title":"Pasted image upload size error",
"url":"/t/pasted-image-upload-size-error/24320/4",
@@ -640,7 +640,7 @@ export default {
},
{
"id":94521,
- "cooked":"
@techapj fixed this for 1.2.
",
+ "cooked":"
@techapj fixed this for 1.2.
",
"created_at":"2015-01-23T02:58:27.451Z",
"title":"The end of Clown Vomit, or, simplified category styles",
"url":"/t/the-end-of-clown-vomit-or-simplified-category-styles/24249/57",
diff --git a/test/javascripts/lib/computed-test.js.es6 b/test/javascripts/lib/computed-test.js.es6
index a708ac21e10..658f35e6757 100644
--- a/test/javascripts/lib/computed-test.js.es6
+++ b/test/javascripts/lib/computed-test.js.es6
@@ -92,13 +92,13 @@ test("url", function() {
var t, testClass;
testClass = Em.Object.extend({
- userUrl: url('username', "/users/%@")
+ userUrl: url('username', "/u/%@")
});
t = testClass.create({ username: 'eviltrout' });
- equal(t.get('userUrl'), "/users/eviltrout", "it supports urls without a prefix");
+ equal(t.get('userUrl'), "/u/eviltrout", "it supports urls without a prefix");
Discourse.BaseUri = "/prefixed";
t = testClass.create({ username: 'eviltrout' });
- equal(t.get('userUrl'), "/prefixed/users/eviltrout", "it supports urls with a prefix");
+ equal(t.get('userUrl'), "/prefixed/u/eviltrout", "it supports urls with a prefix");
});
diff --git a/test/javascripts/lib/discourse-test.js.es6 b/test/javascripts/lib/discourse-test.js.es6
index 8f3725fa442..a6547741238 100644
--- a/test/javascripts/lib/discourse-test.js.es6
+++ b/test/javascripts/lib/discourse-test.js.es6
@@ -3,5 +3,5 @@ module("lib:discourse");
test("getURL on subfolder install", function() {
Discourse.BaseUri = "/forum";
equal(Discourse.getURL("/"), "/forum/", "root url has subfolder");
- equal(Discourse.getURL("/users/neil"), "/forum/users/neil", "relative url has subfolder");
-});
\ No newline at end of file
+ equal(Discourse.getURL("/u/neil"), "/forum/u/neil", "relative url has subfolder");
+});
diff --git a/test/javascripts/lib/pretty-text-test.js.es6 b/test/javascripts/lib/pretty-text-test.js.es6
index 6b95c6c5f32..2d10f0c0d04 100644
--- a/test/javascripts/lib/pretty-text-test.js.es6
+++ b/test/javascripts/lib/pretty-text-test.js.es6
@@ -130,8 +130,8 @@ test("Links", function() {
"
Here's a tweet:
https://twitter.com/evil_trout/status/345954894420787200
",
"It doesn't strip the new line.");
- cooked("1. View @eviltrout's profile here: http://meta.discourse.org/users/eviltrout/activity
next line.",
- "
- View @eviltrout's profile here: http://meta.discourse.org/users/eviltrout/activity
next line.
",
+ cooked("1. View @eviltrout's profile here: http://meta.discourse.org/u/eviltrout/activity
next line.",
+ "
- View @eviltrout's profile here: http://meta.discourse.org/u/eviltrout/activity
next line.
",
"allows autolinking within a list without inserting a paragraph.");
cooked("[3]: http://eviltrout.com", "", "It doesn't autolink markdown link references");
diff --git a/test/javascripts/widgets/poster-name-test.js.es6 b/test/javascripts/widgets/poster-name-test.js.es6
index fee817c582a..fe9add7afde 100644
--- a/test/javascripts/widgets/poster-name-test.js.es6
+++ b/test/javascripts/widgets/poster-name-test.js.es6
@@ -7,7 +7,7 @@ widgetTest('basic rendering', {
setup() {
this.set('args', {
username: 'eviltrout',
- usernameUrl: '/users/eviltrout',
+ usernameUrl: '/u/eviltrout',
name: 'Robin Ward',
user_title: 'Trout Master' });
},
@@ -26,7 +26,7 @@ widgetTest('extra classes and glyphs', {
setup() {
this.set('args', {
username: 'eviltrout',
- usernameUrl: '/users/eviltrout',
+ usernameUrl: '/u/eviltrout',
staff: true,
admin: true,
moderator: true,