feat(notifications): Add bot owner notifications for interactions
- Create new botOwnerNotify module with notifyBotOwnerForPost and notifyBotOwnerForFollow functions - Add bot owner notifications to local post interactions (likes, reposts) - Add bot owner notifications to swarm post interactions (likes, reposts, mentions) - Add bot owner notifications to follow interactions (local and swarm) - Implement mention notification creation for local mentions in post creation - Notify bot owners when their bots receive interactions from other users - Ensure bot owners are alerted to engagement on their bot accounts across federated network
This commit is contained in:
@@ -268,6 +268,10 @@ export async function POST(request: Request, context: RouteContext) {
|
||||
actorId: currentUser.id,
|
||||
type: 'follow',
|
||||
});
|
||||
|
||||
// Also notify bot owner if this is a bot being followed
|
||||
const { notifyBotOwnerForFollow } = await import('@/lib/notifications/botOwnerNotify');
|
||||
await notifyBotOwnerForFollow(targetUser.id, currentUser.id);
|
||||
}
|
||||
|
||||
// Update counts
|
||||
|
||||
Reference in New Issue
Block a user