Skip to content

Commit

Permalink
fix: image file location and urlcleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aaerhart committed Feb 12, 2025
1 parent 05400b2 commit 5c01355
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions components/db/profile/urlCleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ export function cleanSocialLinks(network: keyof SocialLinks, link: string) {
const index: number = path.indexOf(".com/") + 5
path = path.substring(index)
}
if (
network === "mastodon" &&
path.substring(path.indexOf("@") + 1).charAt(0) === "@"
) {
path.replace(
path.substring(path.indexOf("@") + 1),
path.substring(path.indexOf("@") + 2)
)
if (network === "mastodon" && path.startsWith("@")) {
path = path.substring(1)
}
}

Expand Down
File renamed without changes
File renamed without changes

0 comments on commit 5c01355

Please sign in to comment.