From 0b639d5940b3635a9b7f5f968ab551511ef80e47 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 24 Aug 2025 07:03:20 +0000 Subject: [PATCH 1/2] Remove twitter authentication This change removes the twitter authentication feature from the application. It removes the `omniauth-twitter` gem and all related code from controllers, views, and tests. It also removes the twitter icon and environment variable settings. --- Gemfile | 1 - Gemfile.lock | 4 --- app/assets/images/twitter_32.png | Bin 1561 -> 0 bytes app/controllers/members_controller.rb | 1 - .../omniauth_callbacks_controller.rb | 2 +- app/controllers/registrations_controller.rb | 1 - .../devise/registrations/_edit_apps.html.haml | 13 ---------- app/views/members/_contact.html.haml | 7 +----- app/views/members/show.html.haml | 3 +-- config/initializers/omniauth.rb | 1 - env-example | 5 ---- lib/actions/oauth_signup_action.rb | 2 -- spec/controllers/member_controller_spec.rb | 6 ----- .../registrations_controller_spec.rb | 6 ----- spec/factories/authentications.rb | 2 +- spec/features/members/profile_spec.rb | 6 ----- spec/views/devise/registrations/edit_spec.rb | 23 ------------------ 17 files changed, 4 insertions(+), 79 deletions(-) delete mode 100644 app/assets/images/twitter_32.png diff --git a/Gemfile b/Gemfile index 28de94c3b..70baeae6d 100644 --- a/Gemfile +++ b/Gemfile @@ -94,7 +94,6 @@ gem "bootstrap_form", ">= 4.5.0" # For connecting to other services (eg Twitter) gem 'omniauth', '~> 1.3' gem 'omniauth-flickr', '>= 0.0.15' -gem 'omniauth-twitter' # Pretty charts gem "chartkick" diff --git a/Gemfile.lock b/Gemfile.lock index a0bd14c00..d3bfb8c01 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -452,9 +452,6 @@ GEM omniauth-oauth (1.1.0) oauth omniauth (~> 1.0) - omniauth-twitter (1.4.0) - omniauth-oauth (~> 1.1) - rack open-uri (0.1.0) orm_adapter (0.5.0) ostruct (0.6.2) @@ -810,7 +807,6 @@ DEPENDENCIES oj omniauth (~> 1.3) omniauth-flickr (>= 0.0.15) - omniauth-twitter percy-capybara (~> 5.0.0) pg platform-api diff --git a/app/assets/images/twitter_32.png b/app/assets/images/twitter_32.png deleted file mode 100644 index 550232344362bdced8c0991dbd374edc57e53f61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1561 zcmV+!2Il#RP)aqr@}>8fPHmvY)$3D1Mts~kNcAc;4{=W9@rw4ybD%d-gv^94PPdY~gK*13Fad!l- z&~3M;~dofG67p>U0?{IPkU zfJmkiYN`b&F->Xgrb!dDp7y@5mn;`!Z!(940|=2Lu)Xh26eYelUh)wNFh0q)mzt{{ zAS^L6A&L}1v?qcsUJq9dcp@}`rfDU!sPe$h7zt1!<;5~&WHq)#DU!%pMWne!M0tqj zBO_0cRv{5i)bSE|4g$qVHh~B)O?5J=a4&Z?Xb;b?#hS)y{r`C12s#JHVkSjQbj8zm z5#VLUUWSK+ zbfS%-bYv9$%PH( zoDA;i^Q8GGy2Y}KfQqcZRboIXxla#_Vf#JJtYsapjZWgTTt5!|d&B5M*tx0|wLwIM ztuCF!?v0BePn^e*{MeM7LhNI{VWbfVw5CvE=^IVCe|;{GbAzM$a7#@UcCBm2=Z`Pf zHm~*swy>tRYOk#CKyrLSJGhh)P02Z@9E*Zd2?^FhNoMV3HJqQxV0mLrjIe_FtxbzV z!EV*+(kVRDm_}DwVBNfW9J+YjNpKV)V6`USj(%vf?!ghf$xu$$Dg~Raz47Gz_~xnA zAh!8LVMHU~EB|s$AcUtG`qpWPVrJ+m6mfI1{J$Tczw!mFu4ROM>x9IpJ0_6f^GRXe zAjctl3**Q!+#6czXUzO4hvau>FX4|X!#dm(b26HTbiDV*%bi(urdiu46n^g;X7fGV@WU_JkLALXV3DauR0j@inhqUV1ZPexUOrF0&6+ zx6Oy}l0l-QAWaM7jG+&N_UHcm+68E-PKC+FqR~BY6Q_D_+!6EMp)u?|bOs(nuA)jB z+iRr#Anap4pdTasm=KO$=*Nd!?&Am;W!ncieMM6Z9$VCON6aq|jpD^GkE6hjn`y3( ze2fgLjA+TMMFL1NxtfseAHlY-e#iTpS7GP+g)@TvaJCn(ANUP7%M$6vhJd0^&N~nk zG~^1P?4ZNLd4LK$?)d3XZ0)GW_Ki!hsVds?~Z z6(!?j1g?D}0k|GRQBwH&Tjx_*>)@qf9OyodmXyGQ9Zgu!P!r2!T~~*2@_Zi(94U!R z719k2@X}S9hPAVZJ@G-7McK&%B9;r_91px-a60be*$*s??CIB;(rsR*8tJ=IT4U0* zC{``FGhuU$=eYuq5kSPsSN9zc);(sHsVGJ49Wo_cSRhr@&mvY`d2pftD);N+GO&>j z2x|sS*s`JMWfc}6a)6alRZk+kSS3hMIAQ{x|rqnebC$ZPlpy8HfQF&fjEK>YYvELIKP8P1@m#y+WL%sd^ zwmDvaf=)`%CL!BZh?0aUoTGKqbtz}h>2S7lQ{w4r+RXWWTgJm+Z(m;VRtW6Ro$6c$ zu?FpJbK7R)+pz!2z!m11Q@n-#z}UQdEl*ya< Date: Sun, 24 Aug 2025 07:05:28 +0000 Subject: [PATCH 2/2] Remove defunct detail --- Gemfile | 2 +- README.md | 2 -- app/helpers/application_helper.rb | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 70baeae6d..63be4eaca 100644 --- a/Gemfile +++ b/Gemfile @@ -91,7 +91,7 @@ gem 'bootstrap-datepicker-rails' # DRY-er easier bootstrap 4 forms gem "bootstrap_form", ">= 4.5.0" -# For connecting to other services (eg Twitter) +# For connecting to other services (eg Flickr) gem 'omniauth', '~> 1.3' gem 'omniauth-flickr', '>= 0.0.15' diff --git a/README.md b/README.md index 4bda20767..c6aec2da6 100644 --- a/README.md +++ b/README.md @@ -62,5 +62,3 @@ For more information about this project, contact [info@growstuff.org](mailto:inf Security Issues: If you find an authorization bypass or data breach, please contact our maintainers directly at [maintainers@growstuff.org](mailto:maintainers@growstuff.org). -You can also contact us on [Twitter](http://twitter.com/growstufforg/) or -[Facebook](https://www.facebook.com/pages/Growstuff/1531133417099494) or [Github](https://github.com/Growstuff/growstuff/issues).. diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 992dc1b6b..9506cabf3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -50,7 +50,6 @@ module ApplicationHelper uri.query = "&width=#{size}&height=#{size}" if uri.host == 'graph.facebook.com' - # TODO: Assess twitter - https://dev.twitter.com/overview/general/user-profile-images-and-banners # TODO: Assess flickr - https://www.flickr.com/services/api/misc.buddyicons.html return uri.to_s