Merge pull request #29 from lowercase-donkey/fixes

This commit is contained in:
ryo 2023-11-09 14:36:18 +09:00 committed by GitHub
commit d584f0303b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ export const removeReloadEl = () => {
export const getAccountNameAndDisplayName = (userCell: Element) => {
const [avatarEl, displayNameEl] = userCell?.querySelectorAll("a")
const twAccountName = avatarEl?.getAttribute("href")?.replace("/", "")
const twAccountNameRemoveUnderscore = twAccountName.replace("_", "") // bsky does not allow underscore in handle. so remove it.
const twAccountNameRemoveUnderscore = twAccountName.replaceAll("_", "") // bsky does not allow underscores in handle, so remove them.
const twDisplayName = displayNameEl?.textContent
return { twAccountName, twDisplayName, twAccountNameRemoveUnderscore }
}