From 6f5cfb4cb0b5b98aa975ba0620947a0d327d3e9a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Oct 2021 06:07:39 +0000 Subject: [PATCH 01/15] Bump webpacker from 5.4.0 to 5.4.3 Bumps [webpacker](https://github.com/rails/webpacker) from 5.4.0 to 5.4.3. - [Release notes](https://github.com/rails/webpacker/releases) - [Changelog](https://github.com/rails/webpacker/blob/master/CHANGELOG.md) - [Commits](https://github.com/rails/webpacker/compare/v5.4.0...v5.4.3) --- updated-dependencies: - dependency-name: webpacker dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index ff4e7ef5..e4927f90 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1609,7 +1609,7 @@ GEM activemodel (>= 6.0.0) bindex (>= 0.4.0) railties (>= 6.0.0) - webpacker (5.4.0) + webpacker (5.4.3) activesupport (>= 5.2) rack-proxy (>= 0.6.1) railties (>= 5.2) From 46886950b99b22db65d7c772332f4dd144867ebd Mon Sep 17 00:00:00 2001 From: drusepth Date: Fri, 7 Jan 2022 12:59:59 -0800 Subject: [PATCH 02/15] reuse existing slugs on tags instead of recalculating --- app/views/content/components/_list_filter_bar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/content/components/_list_filter_bar.html.erb b/app/views/content/components/_list_filter_bar.html.erb index 955b2891..ec8edda4 100644 --- a/app/views/content/components/_list_filter_bar.html.erb +++ b/app/views/content/components/_list_filter_bar.html.erb @@ -69,7 +69,7 @@ <% if @page_tags %> <% @page_tags.each do |page_tag| %>
  • - <%= link_to params.permit(:tag, :favorite_only).merge({ slug: PageTagService.slug_for(page_tag.tag) }), class: content_type.text_color do %> + <%= link_to params.permit(:tag, :favorite_only).merge({ slug: page_tag.slug }), class: content_type.text_color do %> <%= PageTag.icon %> tagged <%= page_tag.tag %> From 57865e6a30ad3b1aec4154936c469c82b08966a9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Jan 2022 12:02:06 +0000 Subject: [PATCH 03/15] Bump mini_racer from 0.4.0 to 0.6.1 Bumps [mini_racer](https://github.com/discourse/mini_racer) from 0.4.0 to 0.6.1. - [Release notes](https://github.com/discourse/mini_racer/releases) - [Changelog](https://github.com/rubyjs/mini_racer/blob/master/CHANGELOG) - [Commits](https://github.com/discourse/mini_racer/compare/v0.4.0...v0.6.1) --- updated-dependencies: - dependency-name: mini_racer dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index e8418386..039dde87 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1399,7 +1399,7 @@ GEM kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) language_filter (0.3.01) - libv8-node (15.14.0.1) + libv8-node (16.10.0.0) listen (3.7.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) @@ -1426,8 +1426,8 @@ GEM mini_magick (4.11.0) mini_mime (1.1.2) mini_portile2 (2.6.1) - mini_racer (0.4.0) - libv8-node (~> 15.14.0.0) + mini_racer (0.6.1) + libv8-node (~> 16.10.0.0) minitest (5.14.4) multi_json (1.15.0) multipart-post (2.1.1) From 145b4cfe722db20facc948bc34c893b93efdc5a4 Mon Sep 17 00:00:00 2001 From: drusepth Date: Mon, 10 Jan 2022 22:38:31 -0800 Subject: [PATCH 04/15] also update tag slugs when updating label --- app/controllers/page_tags_controller.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/page_tags_controller.rb b/app/controllers/page_tags_controller.rb index ee41cc8a..0c677525 100644 --- a/app/controllers/page_tags_controller.rb +++ b/app/controllers/page_tags_controller.rb @@ -11,7 +11,12 @@ class PageTagsController < ApplicationController new_tag_name = 'Untitled Tag' end - current_user.page_tags.where(tag: old_tag_name).update_all(tag: new_tag_name) + new_slug = PageTagService.slug_for(new_tag_name) + + current_user.page_tags.where(tag: old_tag_name).update_all( + tag: new_tag_name, + slug: new_slug + ) end # Remove a tag and all of its links to a page From 53ac93a362c2f83dfeea1fc21204cdec815d1e7c Mon Sep 17 00:00:00 2001 From: drusepth Date: Mon, 10 Jan 2022 22:39:03 -0800 Subject: [PATCH 05/15] just in case a tag updates a label without also updating slug, keep its slug in sync --- app/models/page_data/page_tag.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/models/page_data/page_tag.rb b/app/models/page_data/page_tag.rb index 79c2d9ff..604a362c 100644 --- a/app/models/page_data/page_tag.rb +++ b/app/models/page_data/page_tag.rb @@ -2,6 +2,8 @@ class PageTag < ApplicationRecord belongs_to :page, polymorphic: true belongs_to :user + after_update :update_slug_to_reflect_label_changes + # Delimiter to be used wherever we want to allow submitting multiple tags in a single string SUBMISSION_DELIMITER = ',,,|||,,,' @@ -12,4 +14,13 @@ class PageTag < ApplicationRecord def self.icon 'label' end + + def update_slug_to_reflect_label_changes + self.update_slug! if (saved_change_to_tag? && self.tag.present?) + end + + def update_slug! + new_slug = PageTagService.slug_for(self.tag) + self.update(slug: new_slug) unless new_slug == self.slug + end end From 9a8b9e37401ab9de66cb29a45cac54f3b846eb28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 12:04:20 +0000 Subject: [PATCH 06/15] Bump newrelic_rpm from 8.0.0 to 8.3.0 Bumps [newrelic_rpm](https://github.com/newrelic/newrelic-ruby-agent) from 8.0.0 to 8.3.0. - [Release notes](https://github.com/newrelic/newrelic-ruby-agent/releases) - [Changelog](https://github.com/newrelic/newrelic-ruby-agent/blob/dev/CHANGELOG.md) - [Commits](https://github.com/newrelic/newrelic-ruby-agent/compare/8.0.0...8.3.0) --- updated-dependencies: - dependency-name: newrelic_rpm dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index e8418386..ab2c0d55 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1434,7 +1434,7 @@ GEM mustache (1.1.1) nested_form (0.3.2) netrc (0.11.0) - newrelic_rpm (8.0.0) + newrelic_rpm (8.3.0) nio4r (2.5.8) nokogiri (1.12.5) mini_portile2 (~> 2.6.1) From cafbfc14ade241dc6b05f129b420a2003daaa214 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 15 Jan 2022 10:28:44 +0000 Subject: [PATCH 07/15] Bump follow-redirects from 1.14.4 to 1.14.7 Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.7. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.7) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index d849f296..8f9354eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3085,9 +3085,9 @@ flush-write-stream@^1.0.0: readable-stream "^2.3.6" follow-redirects@^1.0.0, follow-redirects@^1.14.0: - version "1.14.4" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.4.tgz#838fdf48a8bbdd79e52ee51fb1c94e3ed98b9379" - integrity sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g== + version "1.14.7" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.7.tgz#2004c02eb9436eee9a21446a6477debf17e81685" + integrity sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ== for-in@^1.0.2: version "1.0.2" From e0f3968905563738a539148ca2cd5dc020cd20d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 08:36:40 +0000 Subject: [PATCH 08/15] Bump chartkick from 4.0.5 to 4.1.3 Bumps [chartkick](https://github.com/ankane/chartkick) from 4.0.5 to 4.1.3. - [Release notes](https://github.com/ankane/chartkick/releases) - [Changelog](https://github.com/ankane/chartkick/blob/master/CHANGELOG.md) - [Commits](https://github.com/ankane/chartkick/compare/v4.0.5...v4.1.3) --- updated-dependencies: - dependency-name: chartkick dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index ab2c0d55..737b4856 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1264,7 +1264,7 @@ GEM bundler-audit (0.9.0.1) bundler (>= 1.2.0, < 3) thor (~> 1.0) - chartkick (4.0.5) + chartkick (4.1.3) childprocess (4.1.0) climate_control (0.2.0) cocoon (1.2.15) From 65696c6cd12c44ca160e3b99443639ab1aceba80 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 08:37:47 +0000 Subject: [PATCH 09/15] Bump web-console from 4.1.0 to 4.2.0 Bumps [web-console](https://github.com/rails/web-console) from 4.1.0 to 4.2.0. - [Release notes](https://github.com/rails/web-console/releases) - [Changelog](https://github.com/rails/web-console/blob/master/CHANGELOG.markdown) - [Commits](https://github.com/rails/web-console/compare/v4.1.0...v4.2.0) --- updated-dependencies: - dependency-name: web-console dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 6b67d74c..b8559609 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1354,7 +1354,7 @@ GEM http-form_data (2.3.0) http-parser (1.2.3) ffi-compiler (>= 1.0, < 2.0) - i18n (1.8.10) + i18n (1.8.11) concurrent-ruby (~> 1.0) ibm_cloud_sdk_core (1.1.3) concurrent-ruby (~> 1.0) @@ -1403,7 +1403,7 @@ GEM listen (3.7.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - loofah (2.12.0) + loofah (2.13.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.1) @@ -1425,10 +1425,10 @@ GEM rake mini_magick (4.11.0) mini_mime (1.1.2) - mini_portile2 (2.6.1) + mini_portile2 (2.7.1) mini_racer (0.6.1) libv8-node (~> 16.10.0.0) - minitest (5.14.4) + minitest (5.15.0) multi_json (1.15.0) multipart-post (2.1.1) mustache (1.1.1) @@ -1436,8 +1436,8 @@ GEM netrc (0.11.0) newrelic_rpm (8.3.0) nio4r (2.5.8) - nokogiri (1.12.5) - mini_portile2 (~> 2.6.1) + nokogiri (1.13.1) + mini_portile2 (~> 2.7.0) racc (~> 1.4) onebox (2.2.19) addressable (~> 2.8.0) @@ -1609,7 +1609,7 @@ GEM text-hyphen (1.4.1) textstat (0.1.7) text-hyphen (~> 1.4, >= 1.4.1) - thor (1.1.0) + thor (1.2.1) tilt (2.0.10) timeago_js (3.0.2.2) tribute (3.6.0.0) @@ -1623,7 +1623,7 @@ GEM uniform_notifier (1.14.2) warden (1.2.9) rack (>= 2.0.9) - web-console (4.1.0) + web-console (4.2.0) actionview (>= 6.0.0) activemodel (>= 6.0.0) bindex (>= 0.4.0) @@ -1642,7 +1642,7 @@ GEM websocket-extensions (0.1.5) word_count_analyzer (1.0.1) engtagger - zeitwerk (2.5.1) + zeitwerk (2.5.3) PLATFORMS ruby From 72959806e47cbcd7aaa0c20fbcfc7461158f35e4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 08:38:26 +0000 Subject: [PATCH 10/15] Bump paranoia from 2.4.3 to 2.5.0 Bumps [paranoia](https://github.com/rubysherpas/paranoia) from 2.4.3 to 2.5.0. - [Release notes](https://github.com/rubysherpas/paranoia/releases) - [Changelog](https://github.com/rubysherpas/paranoia/blob/core/CHANGELOG.md) - [Commits](https://github.com/rubysherpas/paranoia/commits) --- updated-dependencies: - dependency-name: paranoia dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 335f2534..d8924bc3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1354,7 +1354,7 @@ GEM http-form_data (2.3.0) http-parser (1.2.3) ffi-compiler (>= 1.0, < 2.0) - i18n (1.8.10) + i18n (1.8.11) concurrent-ruby (~> 1.0) ibm_cloud_sdk_core (1.1.3) concurrent-ruby (~> 1.0) @@ -1428,7 +1428,7 @@ GEM mini_portile2 (2.6.1) mini_racer (0.6.1) libv8-node (~> 16.10.0.0) - minitest (5.14.4) + minitest (5.15.0) multi_json (1.15.0) multipart-post (2.1.1) mustache (1.1.1) @@ -1455,8 +1455,8 @@ GEM mime-types mimemagic (~> 0.3.0) terrapin (~> 0.6.0) - paranoia (2.4.3) - activerecord (>= 4.0, < 6.2) + paranoia (2.5.0) + activerecord (>= 5.1, < 7.1) paypal-checkout-sdk (1.0.4) paypalhttp (~> 1.0.1) paypal_client (0.4.0) @@ -1642,7 +1642,7 @@ GEM websocket-extensions (0.1.5) word_count_analyzer (1.0.1) engtagger - zeitwerk (2.5.1) + zeitwerk (2.5.3) PLATFORMS ruby From 970db16cde492c13b84a06ae39205541f0e3a3f8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 08:38:36 +0000 Subject: [PATCH 11/15] Bump font-awesome-rails from 4.7.0.7 to 4.7.0.8 Bumps [font-awesome-rails](https://github.com/bokmann/font-awesome-rails) from 4.7.0.7 to 4.7.0.8. - [Release notes](https://github.com/bokmann/font-awesome-rails/releases) - [Changelog](https://github.com/bokmann/font-awesome-rails/blob/master/CHANGELOG.md) - [Commits](https://github.com/bokmann/font-awesome-rails/compare/v4.7.0.7...v4.7.0.8) --- updated-dependencies: - dependency-name: font-awesome-rails dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 335f2534..8cedaf17 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1330,8 +1330,8 @@ GEM rake filesize (0.2.0) flamegraph (0.9.5) - font-awesome-rails (4.7.0.7) - railties (>= 3.2, < 7) + font-awesome-rails (4.7.0.8) + railties (>= 3.2, < 8.0) friendly_id (5.4.2) activerecord (>= 4.0.0) globalid (0.5.2) @@ -1354,7 +1354,7 @@ GEM http-form_data (2.3.0) http-parser (1.2.3) ffi-compiler (>= 1.0, < 2.0) - i18n (1.8.10) + i18n (1.8.11) concurrent-ruby (~> 1.0) ibm_cloud_sdk_core (1.1.3) concurrent-ruby (~> 1.0) @@ -1403,7 +1403,7 @@ GEM listen (3.7.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - loofah (2.12.0) + loofah (2.13.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.1) @@ -1425,10 +1425,10 @@ GEM rake mini_magick (4.11.0) mini_mime (1.1.2) - mini_portile2 (2.6.1) + mini_portile2 (2.7.1) mini_racer (0.6.1) libv8-node (~> 16.10.0.0) - minitest (5.14.4) + minitest (5.15.0) multi_json (1.15.0) multipart-post (2.1.1) mustache (1.1.1) @@ -1436,8 +1436,8 @@ GEM netrc (0.11.0) newrelic_rpm (8.3.0) nio4r (2.5.8) - nokogiri (1.12.5) - mini_portile2 (~> 2.6.1) + nokogiri (1.13.1) + mini_portile2 (~> 2.7.0) racc (~> 1.4) onebox (2.2.19) addressable (~> 2.8.0) @@ -1609,7 +1609,7 @@ GEM text-hyphen (1.4.1) textstat (0.1.7) text-hyphen (~> 1.4, >= 1.4.1) - thor (1.1.0) + thor (1.2.1) tilt (2.0.10) timeago_js (3.0.2.2) tribute (3.6.0.0) @@ -1642,7 +1642,7 @@ GEM websocket-extensions (0.1.5) word_count_analyzer (1.0.1) engtagger - zeitwerk (2.5.1) + zeitwerk (2.5.3) PLATFORMS ruby From 70a807994d65dc87271a39f435b759ca46c919b9 Mon Sep 17 00:00:00 2001 From: drusepth Date: Mon, 17 Jan 2022 00:56:44 -0800 Subject: [PATCH 12/15] Follow migration steps at https://github.com/rubyjs/mini_racer/issues/218 --- Gemfile | 3 ++- Gemfile.lock | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 84e1f626..bf68a3e8 100644 --- a/Gemfile +++ b/Gemfile @@ -107,8 +107,9 @@ group :production do end group :test, :production do - gem 'mini_racer' gem 'pg', '~> 1.2' + + gem "mini_racer", "~> 0.6.2" end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index 7965b50c..d914f35a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1400,6 +1400,7 @@ GEM kramdown (~> 2.0) language_filter (0.3.01) libv8-node (16.10.0.0) + libv8-node (16.10.0.0-x86_64-linux) listen (3.7.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) @@ -1426,7 +1427,7 @@ GEM mini_magick (4.11.0) mini_mime (1.1.2) mini_portile2 (2.7.1) - mini_racer (0.6.1) + mini_racer (0.6.2) libv8-node (~> 16.10.0.0) minitest (5.15.0) multi_json (1.15.0) @@ -1439,6 +1440,8 @@ GEM nokogiri (1.13.1) mini_portile2 (~> 2.7.0) racc (~> 1.4) + nokogiri (1.13.1-x86_64-linux) + racc (~> 1.4) onebox (2.2.19) addressable (~> 2.8.0) htmlentities (~> 4.3) @@ -1646,6 +1649,7 @@ GEM PLATFORMS ruby + x86_64-linux DEPENDENCIES active_storage_validations @@ -1681,7 +1685,7 @@ DEPENDENCIES medium-editor-rails memory_profiler meta-tags - mini_racer + mini_racer (~> 0.6.2) newrelic_rpm paperclip paranoia @@ -1722,4 +1726,4 @@ RUBY VERSION ruby 2.7.2p137 BUNDLED WITH - 2.1.4 + 2.3.5 From 701273a88496be3cfe406c5bb69472d9ccae0c04 Mon Sep 17 00:00:00 2001 From: drusepth Date: Mon, 17 Jan 2022 01:08:03 -0800 Subject: [PATCH 13/15] upgrade ruby 2.7.4 -> 2.7.5 --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 74500cee..460b6fd4 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.4 \ No newline at end of file +2.7.5 \ No newline at end of file From dc833527b45938086a9f9359dd0f92d0d13873eb Mon Sep 17 00:00:00 2001 From: drusepth Date: Mon, 17 Jan 2022 01:17:13 -0800 Subject: [PATCH 14/15] strip trailing whitespace from readme --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 009d2de7..0d91681e 100644 --- a/README.rdoc +++ b/README.rdoc @@ -3,7 +3,7 @@ {}[https://codeclimate.com/github/indentlabs/notebook/coverage] {Inline docs}[http://inch-ci.org/github/indentlabs/notebook] -== What is Notebook.ai? +== What is Notebook.ai? see {live website}[http://notebook.ai/] From 8c1a8b2ae699fb70e9fdf04ad3a948c13a8734d9 Mon Sep 17 00:00:00 2001 From: drusepth Date: Mon, 17 Jan 2022 12:24:55 -0800 Subject: [PATCH 15/15] skip a couple queries multiplicative on profile --- app/views/share_comments/_show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/share_comments/_show.html.erb b/app/views/share_comments/_show.html.erb index 89e8a0a8..0616e275 100644 --- a/app/views/share_comments/_show.html.erb +++ b/app/views/share_comments/_show.html.erb @@ -24,7 +24,7 @@ <%= time_ago_in_words comment.created_at %> ago - <% if user_signed_in? && (share.user == current_user || comment.user == current_user) %> + <% if user_signed_in? && (share.user_id == current_user.id || comment.user_id == current_user.id) %> more_vert