discourse/test/javascripts
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
..
acceptance DEV: don't add username to share links when badges are disabled (#10730) 2020-09-29 00:12:16 +08:00
admin DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
components DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
controllers DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
ember DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
fixtures FIX: don’t include category in quote topic title, if present 2020-09-25 15:01:57 -04:00
helpers DEV: enforces eslint’s curly rule to the codebase (#10720) 2020-09-22 16:28:28 +02:00
initializers DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
lib FIX: prevents scrollbar jumping in the emoji picker (#10749) 2020-09-28 13:23:46 +02:00
mixins DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
models FIX: prevents scrollbar jumping in the emoji picker (#10749) 2020-09-28 13:23:46 +02:00
services DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
utils DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
widgets DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
plugin_tests.js.erb FIX: Allow plugins to provide test directories with transpiled .js 2020-06-16 14:31:01 -04:00
test_helper.js DEV: Throw an error instead of a string. 2020-08-28 11:40:16 +08:00