Skip to content

Commit

Permalink
fixed webmention utl
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichmax committed Jan 26, 2024
1 parent 602bbdd commit 9453d1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ export default function Dashboard({

const linesOfCode = codeStats.SUM.code

const α = 0.2
const B = 10000
const α = 0.4
const B = 500
let pageViews = []
let normalisedViews = []
let recentViews = 0
Expand Down
3 changes: 2 additions & 1 deletion src/components/social/webmentions/webmentions.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export default function Webmentions({ slug, preview }) {
return entry
}

console.log(webmentions)
setComments(
webmentions
.filter((entry) => entry["wm-target"] === url)
Expand Down Expand Up @@ -383,7 +384,7 @@ export default function Webmentions({ slug, preview }) {
<WebmentionLike key={i}>
<WebmentionAuthorImgWrapper
className="u-url"
href={mention.author.url ? mention.author.url : config.siteUrl}
href={mention.url ? mention.url : config.siteUrl}
rel="noopener noreferrer nofollow"
alt={`Link to profile of ${mention.author.name}`}
title={mention.author.name}
Expand Down

0 comments on commit 9453d1e

Please sign in to comment.