r/programming • • Mar 27 '23

Twitter Source Code Leaked on GitHub

https://www.cyberkendra.com/2023/03/twitter-source-code-leaked-on-github.html
8.0k Upvotes

717 comments sorted by

View all comments

747

u/lazernanes Mar 27 '23 edited Mar 27 '23

The company could face a lawsuit for intellectual property theft, which could result in huge fines and damage to its reputation

I don't understand. A disgruntled ex-employee leaks the code and twitter gets sued? By whom? for what?

Edit: The article was edited. The line I quoted is no longer there.

998

u/plaid_rabbit Mar 27 '23

If Twitter used anyone else’s IP/patents or FOSS software that required sharing source code.

116

u/crazedizzled Mar 27 '23

You typically don't have to provide source code for closed web apps. At least under the GPL, deploying code to your own servers doesn't count as distribution.

However it's possible if they've licensed some other intellectual property not meant to be publicized, that could indeed get them in trouble.

58

u/legobmw99 Mar 27 '23

AGPL exists for exactly that case, so it’s possible

48

u/craze4ble Mar 27 '23

Or alternatively, there are licenses that stipulate that commercial use is disallowed, requires some form of royalties, or that everything must be open sourced under the same license.

→ More replies (13)

110

u/ghostinthekernel Mar 27 '23

I think the issue is when you fork that code, or does simply using a library package entail you have to open source the project you use it into? Genuine question.

253

u/will_work_for_twerk Mar 27 '23

Either could apply depending on the license used

117

u/plaid_rabbit Mar 27 '23

Depends on the license. IANAL. It varies by the license. MIT requires no sharing. I know there’s some FOSS licenses that require you to share any modifications if you allow users to connect publicly to your app. Most only require you to share if you directly modify the library and distribute it.

→ More replies (3)

24

u/danhakimi Mar 27 '23

It depends on a whole lot more than what the others mentioned. What's the license? Is the code in question being distributed or not? How does the code interact with the package--static link, dynamic link, scripting language import, what? Is the code being modified?

I am a lawyer. I am not your lawyer, and none of this is legal advice. I've worked in this field for years, and it's fairly complicated.

10

u/henk53 Mar 27 '23

Is the code in question being distributed or not?

Many people here seem to overlook this basic question.

7

u/danhakimi Mar 27 '23

Or misunderstand it. Twitter.com distributes a lot. HTML, CSS, JavaScript.

→ More replies (1)
→ More replies (4)

56

u/vanatteveldt Mar 27 '23

The answer is somewhat complicated and might depend on the license of the library package and the definition of 'derived work'. My 2 cents (IANAL):

- If the library or package is licensed LGPL, MIT or another non-copyleft license (i.e., not GPL), there should be no problem

- If you're linking to a GPL'd library (i.e. importing it), the situation is more complicated, see e.g. https://en.wikipedia.org/wiki/GPL_linking_exception and its sources

44

u/chx_ Mar 27 '23

IANAL but the GPL does not restrict your rights when using it, it applies if you try to distribute your code.

Activities other than copying, distribution and modification are not covered by this License; they are outside its scope.

They needed to make the AGPL so people who use the software over a network will be able to get the source code for it.

33

u/jarfil Mar 27 '23 edited Oct 22 '23

CENSORED

51

u/LookIPickedAUsername Mar 27 '23

To be pedantic, the GPL doesn’t restrict your rights at all - it offers you rights you wouldn’t normally have when interacting with someone else’s software.

→ More replies (4)
→ More replies (2)

10

u/myringotomy Mar 27 '23
  • If the library or package is licensed LGPL, MIT or another non-copyleft license (i.e., not GPL), there should be no problem

There might be. Some of those licenses require attribution.

11

u/vanatteveldt Mar 27 '23

Sure, but you can attribute without making your own code open source

→ More replies (3)
→ More replies (2)

7

u/Unable-Fox-312 Mar 27 '23

You are supposed to know the license terms for all software you incorporate into your project

→ More replies (10)
→ More replies (2)

35

u/myringotomy Mar 27 '23

Maybe they violated some GPL licenses.

→ More replies (2)

49

u/Qweesdy Mar 27 '23

Sued for copyright infringement by whoever wrote the code Twitter stole!

→ More replies (11)