Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace username with realname if they’re the same: show-names #2193

Merged

Conversation

dotconnor
Copy link
Contributor

@dotconnor dotconnor commented Jun 29, 2019

Closes #2165

Before

After

Test

microsoft/TypeScript#30442 (reference)
fregante/webext-options-sync#13 (comment)

Requires #2146 to use select<HTMLAnchorElement>('.author')!.pathname.slice(1)

@fregante
Copy link
Member

fregante commented Jun 29, 2019

#2165 (comment)

to use (select('.author')! as HTMLAnchorElement).pathname.slice(1)

It might be worth looking for other places that would break because of this.


TS note: the code would be select<HTMLAnchorElement>('.author')!.pathname.slice(1)

@jerone
Copy link
Contributor

jerone commented Jun 29, 2019

I would check for the following:

  • username: (long and short) hyphen and dot.
  • real name: (long and short) hyphen, dot and space.

@fregante
Copy link
Member

fregante commented Jul 4, 2019

(tested #2185)

@fregante
Copy link
Member

Can you pick this up again before #2229?

@fregante fregante merged commit 0b40361 into refined-github:master Jul 29, 2019
@fregante
Copy link
Member

Oops, didn't notice you fixed this a while ago.

Tested and it works great both in discussions and newsfeed.

fregante added a commit to notlmn/refined-github that referenced this pull request Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Avoid adding real names when the user is using a real name
4 participants