Skip to content

Commit

Permalink
Hotfix for lemmy v0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Jun 23, 2023
1 parent 354fc51 commit d101672
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ app.use(
"user-agent",
`(${req.hostname}, ${process.env.EMAIL || "[email protected]"})`
);

// Fake it to get around Lemmy API connection issue
clientReq.setHeader("origin", `https://${req.params.actor}`);
},
})
);
Expand Down

0 comments on commit d101672

Please sign in to comment.