🔀 Fork of Bluesky (https://github.com/bluesky-social/social-app) with minor adjustments for https://zio.blue
 
 
 
 
 
 
Go to file
Paul Frazee 0dae24e78f
Additional embed sources and external-media consent controls (#2424)
* add apple music embed

* add vimeo embed

* add logic for tenor and giphy embeds

* keep it simple, use playerUri for images too

* add gif embed player

* lint, fix tests

* remove links that can't produce a thumb

* Revert "remove links that can't produce a thumb"

This reverts commit 985b92b4e622db936bb0c79fdf324099b9c8fcd8.

* Revert "Revert "remove links that can't produce a thumb""

This reverts commit 4895ded8b5120c4fc52b43ae85c9a01ea0b1a733.

* Revert "Revert "Revert "remove links that can't produce a thumb"""

This reverts commit 36d04b517ba5139e1639f2eda28d7f9aaa2dbfb6.

* properly obtain giphy metadata regardless of used url

* test fixes

* adjust gif player

* add all twitch embed types

* support m.youtube links

* few logic adjustments

* adjust spotify player height

* prefetch gif before showing

* use memory-disk cache policy on gifs

* use `disk` cachePolicy on ios - can't start/stop animation

* support pause/play on web

* onLoad fix

* remove extra pressable, add accessibility, fix scale issues

* improve size of embed

* add settings

* fix(?) settings

* add source to embed player params

* update tests

* better naming and settings options

* consent modal

* fix test id

* why is webstorm adding .tsx

* web modal

* simplify types

* adjust snap points

* remove unnecessary yt embed library. just use the webview always

* remove now useless WebGifStill 😭

* more type cleanup

* more type cleanup

* combine parse and prefs check in one memo

* improve dimensions of youtube shorts

* oops didn't commit the test 🫥

* add shorts as separate embed type

* fix up schema

* shorts modal

* hide gif details

* support localized spotify embeds

* more cleanup

* improve look and accessibility of gif embeds

* Update routing for the external embeds settings page

* Update and simplify the external embed preferences screen

* Update copy in embedconsent modal and add 'allow all' button

---------

Co-authored-by: Hailey <me@haileyok.com>
2024-01-04 17:37:36 -08:00
.bundle Initial commit 2022-06-07 17:50:05 -05:00
.github Don't create embeds of profiles/posts from users who ask not to be sh… (#2189) 2023-12-12 13:10:13 -08:00
.husky set up lint-staged via husky 2023-07-13 15:35:56 -07:00
__e2e__ E2E runner fixes (#2428) 2024-01-04 17:33:57 -08:00
__mocks__ Use Sentry only for errors (#1776) 2023-11-07 04:30:00 +00:00
__tests__/lib Additional embed sources and external-media consent controls (#2424) 2024-01-04 17:37:36 -08:00
assets Bop it (#2244) 2023-12-18 14:49:59 -08:00
bskyweb Additional embed sources and external-media consent controls (#2424) 2024-01-04 17:37:36 -08:00
docs Update localization.md (#2263) 2023-12-21 14:58:42 -08:00
jest Hide label appeal on self-labeled posts (#2232) 2023-12-18 09:16:33 -08:00
patches Add patch explanation md 2024-01-02 12:53:52 -08:00
plugins Add largeHeap to AndroidManifest.xml (#2191) 2023-12-12 13:40:24 -08:00
scripts Create build step for the web server (#289) 2023-03-14 17:30:15 -05:00
src Additional embed sources and external-media consent controls (#2424) 2024-01-04 17:37:36 -08:00
web Apply color theme to HTML page itself (#2132) 2023-12-07 11:00:44 -08:00
.buckconfig Initial commit 2022-06-07 17:50:05 -05:00
.detoxrc.js Update testrunner to use new dev-env [WIP] (#1575) 2023-10-10 15:46:27 -07:00
.easignore A couple quick notifications fixes (#1262) 2023-08-23 17:10:00 -07:00
.env.example E2E 🟢 (#2092) 2023-12-05 14:50:56 -06:00
.eslintrc.js Add Lingui check to CI (#2058) 2023-12-01 09:14:10 -08:00
.gitignore Add Lingui check to CI (#2058) 2023-12-01 09:14:10 -08:00
.prettierignore Basic golang CI setup (#360) 2023-03-27 10:16:17 -05:00
.prettierrc.js Add state management 2022-06-09 13:03:25 -05:00
.ruby-version Improve lightbox... and update to React Native 0.71.0 (#49) 2023-01-17 20:40:02 -06:00
.watchmanconfig Initial commit 2022-06-07 17:50:05 -05:00
Dockerfile Add Lingui check to CI (#2058) 2023-12-01 09:14:10 -08:00
Gemfile Improve lightbox... and update to React Native 0.71.0 (#49) 2023-01-17 20:40:02 -06:00
LICENSE update Bluesky PBLLC to PBC (Public Benefit Corporation) (#1453) 2023-09-14 14:51:06 -07:00
Makefile bskyweb: update golang indigo dep (from May!), and some small devex tweaks (#2227) 2023-12-18 19:31:48 +04:00
README.md Updated the mistake (#1777) 2023-10-31 08:39:35 -07:00
app.config.js Bump ios build number and android version code 2023-12-28 19:05:50 -08:00
babel.config.js Bump react-native to 0.73.1, expo to 50 (#2214) 2023-12-23 15:44:38 -08:00
eas.json Full send Sentry (#2018) 2023-11-28 21:49:37 -06:00
google-services.json.example Add example google-services file (#1545) 2023-09-28 12:22:23 -07:00
index.js E2E 🟢 (#2092) 2023-12-05 14:50:56 -06:00
index.web.js Re-enable fetch monkey-patch (#2036) 2023-11-29 16:00:13 -08:00
lingui.config.js Add Ukrainian localization (#2336) 2024-01-04 01:52:55 +05:30
metro.config.js Let Metro handle import/export instead of Babel (#1772) 2023-10-30 21:54:23 +00:00
package.json Additional embed sources and external-media consent controls (#2424) 2024-01-04 17:37:36 -08:00
tsconfig.check.json [APP-786] Native notifications (#1095) 2023-08-23 16:28:51 -07:00
tsconfig.e2e.json E2E runner fixes (#2428) 2024-01-04 17:33:57 -08:00
tsconfig.json Bump react-native to 0.73.1, expo to 50 (#2214) 2023-12-23 15:44:38 -08:00
webpack.config.js Enable Fast Refresh for web (#1383) 2023-09-05 11:13:42 -07:00
yarn.lock Additional embed sources and external-media consent controls (#2424) 2024-01-04 17:37:36 -08:00

README.md

Bluesky Social App

Welcome friends! This is the codebase for the Bluesky Social app.

Get the app itself:

Development Resources

This is a React Native application, written in the TypeScript programming language. It builds on the atproto TypeScript packages (like @atproto/api), code for which is also on open source, but in a different git repository.

There is a small amount of Go language source code (in ./bskyweb/), for a web service that returns the React Native Web application.

The Build Instructions are a good place to get started with the app itself.

The Authenticated Transfer Protocol ("AT Protocol" or "atproto") is a decentralized social media protocol. You don't need to understand AT Protocol to work with this application, but it can help. Learn more at:

The Bluesky Social application encompasses a set of schemas and APIs built in the overall AT Protocol framework. The namespace for these "Lexicons" is app.bsky.*.

Contributions

While we do accept contributions, we prioritize high quality issues and pull requests. Adhering to the below guidelines will ensure a more timely review.

Rules:

  • We may not respond to your issue or PR.
  • We may close an issue or PR without much feedback.
  • We may lock discussions or contributions if our attention is getting DDOSed.
  • We're not going to provide support for build issues.

Guidelines:

  • Check for existing issues before filing a new one please.
  • Open an issue and give some time for discussion before submitting a PR.
  • Stay away from PRs like...
    • Changing "Post" to "Skeet."
    • Refactoring the codebase, eg to replace mobx with redux or something.
    • Adding entirely new features without prior discussion.

Remember, we serve a wide community of users. Our day to day involves us constantly asking "which top priority is our top priority." If you submit well-written PRs that solve problems concisely, that's an awesome contribution. Otherwise, as much as we'd love to accept your ideas and contributions, we really don't have the bandwidth. That's what forking is for!

Forking guidelines

You have our blessing 🪄 to fork this application! However, it's very important to be clear to users when you're giving them a fork.

Please be sure to:

  • Change all branding in the repository and UI to clearly differentiate from Bluesky.
  • Change any support links (feedback, email, terms of service, etc) to your own systems.
  • Replace any analytics or error-collection systems with your own so we don't get super confused.

Security disclosures

If you discover any security issues, please send an email to security@bsky.app. The email is automatically CCed to the entire team and we'll respond promptly.

Are you a developer interested in building on atproto?

Bluesky is an open social network built on the AT Protocol, a flexible technology that will never lock developers out of the ecosystems that they help build. With atproto, third-party can be as seamless as first-party through custom feeds, federated services, clients, and more.

If you're a developer interested in building on atproto, we'd love to email you a Bluesky invite code. Simply share your GitHub (or similar) profile with us via this form.

License (MIT)

See ./LICENSE for the full license.

P.S.

We ❤️ you and all of the ways you support us. Thank you for making Bluesky a great place!