Skip to content

Node.js based forum software built for the modern web

check if ap enabled

Barış Soner Uşaklıcdc6f9f6a369
diff --git a/src/controllers/posts.js b/src/controllers/posts.js
index 2b08558a9a..44f2b06649 100644
--- a/src/controllers/posts.js
+++ b/src/controllers/posts.js
@@ -20,7 +20,7 @@ postsController.redirectToPost = async function (req, res, next) {
}
// Kickstart note assertion if applicable
- if (!utils.isNumber(pid) && req.uid) {
+ if (!utils.isNumber(pid) && req.uid && meta.config.activitypubEnabled) {
const exists = await posts.exists(pid);
if (!exists) {
await activitypub.notes.assert(req.uid, pid);