fix: Various website and repo fixes (#243)
- Fixes things in Oath flow, yet needs testing before we close #235 - Updates security notice, closes #240 - Fixes broken links to user profiles, closes #238 Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/243 Co-authored-by: joostdecock <joost@joost.at> Co-committed-by: joostdecock <joost@joost.at>
This commit is contained in:
parent
7f5258d42d
commit
c5b0daf390
12 changed files with 175 additions and 363 deletions
|
@ -59,7 +59,7 @@ const titles = {
|
|||
const userAsAuthor = (user) => ({
|
||||
name: user.profile.username,
|
||||
title: titles[user.profile.role],
|
||||
url: `https://freesewing.org/users/user?id=${user.profile.id}`,
|
||||
url: `https://freesewing.eu/users/?id=${user.profile.id}`,
|
||||
image_url: `https://imagedelivery.net/ouSuR9yY1bHt-fuAokSA5Q/uid-${user.profile.ihash}/public`,
|
||||
bio: user.profile.bio,
|
||||
})
|
||||
|
@ -67,7 +67,7 @@ const userAsAuthor = (user) => ({
|
|||
const loadUser = async (id) => {
|
||||
let result
|
||||
try {
|
||||
result = await fetch(`https://backend3.freesewing.org/users/${id}`)
|
||||
result = await fetch(`https://backend.freesewing.eu/users/${id}`)
|
||||
} catch (err) {
|
||||
console.warn(`Failed to load user with id ${id}`, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue