Skip to content

Commit

Permalink
fix: pid missing on new web posts 🤦‍♀️
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelKat committed Jan 20, 2025
1 parent 5c40959 commit 8e23784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/services/juxt-web/routes/console/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ router.post('/new', async function (req, res) {
language_id: req.body.language_id,
mii: req.user.mii.data,
mii_face_url: `${config.CDN_domain}/mii/${req.pid}/${miiFace}`,
pid: req.pid,
platform_id: req.paramPackData ? req.paramPackData.platform_id : 0,
region_id: req.paramPackData ? req.paramPackData.region_id : 2,
verified: (req.user.accessLevel >= 2),
Expand Down
1 change: 1 addition & 0 deletions src/services/juxt-web/routes/console/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ async function newPost(req, res) {
language_id: req.body.language_id,
mii: req.user.mii.data,
mii_face_url: `${config.CDN_domain}/mii/${req.user.pid}/${miiFace}`,
pid: req.pid,
platform_id: req.paramPackData ? req.paramPackData.platform_id : 0,
region_id: req.paramPackData ? req.paramPackData.region_id : 2,
verified: res.locals.moderator,
Expand Down

0 comments on commit 8e23784

Please sign in to comment.