discourse/test/javascripts/acceptance
Joe 72361738d0
DEV: don't add username to share links when badges are disabled (#10730)
Context: https://meta.discourse.org/t/stop-appending-username-to-url-when-badge-system-disabled/164904

Share links for topics and posts have the current username appended to them when the user is logged in. 

If badges are disabled, those added usernames are not beneficial since they're only used to track progress towards certain badges. 

This PR makes two change. 

1. it moves the logic for the share link url to a centralized helper because it's shared in both topic and post models. 
2. it stops username params from being added to share links when badges are disabled.
2020-09-29 00:12:16 +08:00
..
about-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
account-created-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-emails-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-search-log-term-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-search-logs-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-site-settings-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-site-text-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-suspend-user-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-user-badges-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-user-emails-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-user-index-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-users-list-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin-watched-words-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
auth-complete-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
badges-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
bookmarks-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
category-banner-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
category-chooser-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
category-edit-security-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
category-edit-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
click-track-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
composer-actions-test.js FEATURE: Remove user topic timers and migrate to bookmarks with reminders (#10474) 2020-09-14 11:11:55 +10:00
composer-attachment-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
composer-edit-conflict-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
composer-hyperlink-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
composer-onebox-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
composer-tags-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
composer-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
composer-topic-links-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
composer-uncategorized-test.js FIX: allow editing in composer before a category is selected (#10724) 2020-09-23 10:28:56 -04:00
create-account-external-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
create-account-user-fields-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
custom-html-set-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
custom-html-template-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
dashboard-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
email-notice-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
emoji-picker-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
emoji-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
encoded-category-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
enforce-second-factor-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
forgot-password-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-card-mobile-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-card-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-index-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-manage-categories-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-manage-interaction-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-manage-logs-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-manage-membership-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-manage-profile-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-manage-tags-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-requests-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
groups-index-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
groups-new-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
hamburger-menu-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
hashtags-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
invite-accept-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
invite-show-user-fields-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
jump-to-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
keyboard-shortcuts-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
login-redirect-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
login-required-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
login-with-email-and-hide-email-address-taken-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
login-with-email-and-no-social-logins-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
login-with-email-disabled-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
login-with-email-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
mobile-discovery-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
mobile-sign-in-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
mobile-users-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
modal-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
new-message-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
new-topic-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
notifications-filter-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
page-publishing-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
password-reset-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
personal-message-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
plugin-keyboard-shortcut-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
plugin-outlet-connector-class-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
plugin-outlet-decorator-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
plugin-outlet-multi-template-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
plugin-outlet-single-template-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
post-admin-menu-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
preferences-test.js FEATURE: add user opt to select bookmarks as home (#10597) 2020-09-10 11:13:12 -04:00
raw-plugin-outlet-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
redirect-to-top-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
reports-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
review-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
search-full-test.js FEATURE: advanced search option for max posts count (#10761) 2020-09-28 21:34:16 +05:30
search-mobile-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
search-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
share-and-invite-desktop-test.js DEV: don't add username to share links when badges are disabled (#10730) 2020-09-29 00:12:16 +08:00
share-and-invite-mobile-test.js DEV: don't add username to share links when badges are disabled (#10730) 2020-09-29 00:12:16 +08:00
shared-drafts-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
sign-in-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
static-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
tag-groups-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
tags-intersection-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
tags-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-admin-menu-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-anonymous-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-discovery-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-edit-timer-test.js FEATURE: Remove user topic timers and migrate to bookmarks with reminders (#10474) 2020-09-14 11:11:55 +10:00
topic-footer-buttons-mobile-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-list-tracker-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-move-posts-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-notifications-button-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-quote-button-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
topic-test.js FIX: prevents scrollbar jumping in the emoji picker (#10749) 2020-09-28 13:23:46 +02:00
unknown-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-anonymous-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-bookmarks-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-card-mobile-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-card-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-drafts-stream-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-preferences-interface-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
users-test.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00