Treat profile-pages like timelines.

This commit is contained in:
tastytea 2019-06-12 21:31:36 +02:00
parent 1375d24e84
commit 50c53be59b
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ function add_button(parent)
function check()
{
const re = new RegExp(
'(/main/(friends|public|all)|/users/[^/]+/(mentions|dms))#?$');
'(/main/(friends|public|all)|/users/[^/]+(/(mentions|dms)))?#?$');
const is_timeline = re.test(window.location.href);
if (!is_timeline) // If we are on a timeline, don't stop checking.