Skip to content

Node.js based forum software built for the modern web

refactor: change the path of follow notif to go to the user

Barış Soner Uşaklıcf405b1892dc
diff --git a/src/api/users.js b/src/api/users.js
index c4f4add772..3897613342 100644
--- a/src/api/users.js
+++ b/src/api/users.js
@@ -188,7 +188,7 @@ usersAPI.follow = async function (caller, data) {
bodyShort: `[[notifications:user-started-following-you, ${displayname}]]`,
nid: `follow:${data.uid}:uid:${caller.uid}`,
from: caller.uid,
- path: `/uid/${data.uid}/followers`,
+ path: `/uid/${caller.uid}`,
mergeId: 'notifications:user-started-following-you',
});
if (!notifObj) {