Prevent notifications for owner following accounts

master
teknomunk 1 year ago
parent 1215ebfe4e
commit 12c0b20364

@ -405,13 +405,15 @@ void account_add_follower( struct account* a, struct account* follower )
account_save(follower);
// Create notification for follow
struct notification* note = notification_new();
note->debug = 4;
note->type = nt_follow;
note->account_id = follower->id;
note->created_at = time(NULL);
notification_save( note );
notification_free( note );
if( follower->id != owner_account_id ) {
struct notification* note = notification_new();
note->debug = 4;
note->type = nt_follow;
note->account_id = follower->id;
note->created_at = time(NULL);
notification_save( note );
notification_free( note );
}
}
void account_remove_follower( struct account* a, struct account* follower )
{

Loading…
Cancel
Save