It works both ways. I think depressed people are attracted because it is a way to meet people without leaving their homes. It can be daunting to think of going out when you are depressed. Even worse, when depressed, you imagine you are unlikeable and unlovable and it will be impossible to make friends or find lovers in the real world.
But on the internet you don’t have to do anything to meet people. They are all there. You can join any conversation without saying “excuse me.” You can find out information about people without even asking them. You can see their lives.
Also important, the internet is huge and the people with same interests can easily find each other and congregate together. In real life, there might not be someone with your interests within a thousand miles.
For another thing, it can help people who are depressed to get better. At least, it helped me, so I know it’s possible. So the internet certainly attracts people with depression.
It is also possible that it aids people in remaining depressed or getting more depressed. Sometimes you meet people online, but it is impossible to meet them in real life. That can be depressing. Sometimes you ask for help and people don’t know what they are doing and they hurt you rather than help you. Sometimes there are cliques and whatnot, and you can get cut out or harassed, just as in real life.
There’s not a simple yes or no answer here. The internet, I believe can have both a positive and a negative impact on people with depression. Like most things, it depends on where you’re coming from, and the kind of experience you have on the web.