FIX: Remove google+ from share_links site setting

approved

#1

FIX: Remove google+ from share_links site setting

Follow-up to 2748822576ab0aa36ce35097c99b34a9f9f1b61e

diff --git a/db/migrate/20190110201340_remove_google_plus_from_share_links_site_setting.rb b/db/migrate/20190110201340_remove_google_plus_from_share_links_site_setting.rb
new file mode 100644
index 0000000..b6268b7
--- /dev/null
+++ b/db/migrate/20190110201340_remove_google_plus_from_share_links_site_setting.rb
@@ -0,0 +1,13 @@
+class RemoveGooglePlusFromShareLinksSiteSetting < ActiveRecord::Migration[5.2]
+  def up
+    execute <<~SQL
+      UPDATE site_settings
+      SET value = array_to_string(array_remove(regexp_split_to_array(value, '\\|'), 'google+'), '|')
+      WHERE name = 'share_links'
+    SQL
+  end
+
+  def down
+    raise ActiveRecord::IrreversibleMigration
+  end
+end

GitHub sha: f43345b7


FEATURE: Remove option for Google Plus sharing (#6864)
#2

Nice catch I totally forgot we need to nuke the override in site settings.


#3