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

This commit is contained in:
Barış Soner Uşaklı
2024-09-16 19:41:01 -04:00
parent 5cd68c0b44
commit cf405b1892

View File

@@ -188,7 +188,7 @@ usersAPI.follow = async function (caller, data) {
bodyShort: `[[notifications:user-started-following-you, ${displayname}]]`, bodyShort: `[[notifications:user-started-following-you, ${displayname}]]`,
nid: `follow:${data.uid}:uid:${caller.uid}`, nid: `follow:${data.uid}:uid:${caller.uid}`,
from: caller.uid, from: caller.uid,
path: `/uid/${data.uid}/followers`, path: `/uid/${caller.uid}`,
mergeId: 'notifications:user-started-following-you', mergeId: 'notifications:user-started-following-you',
}); });
if (!notifObj) { if (!notifObj) {