discourse/app/assets
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
..
images
javascripts DEV: don't add username to share links when badges are disabled (#10730) 2020-09-29 00:12:16 +08:00
stylesheets FEATURE: advanced search option for max posts count (#10761) 2020-09-28 21:34:16 +05:30