From cd8f63ba2cff387759e08ad8af65d1c7c901928c Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Thu, 22 Mar 2018 13:29:21 -0400 Subject: [PATCH] Change crossposted show logic and change signup CTA link (#120) * Change base signup CTA link --- app/helpers/articles_helper.rb | 3 +-- app/views/articles/_actions.html.erb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/helpers/articles_helper.rb b/app/helpers/articles_helper.rb index 471ad26e8..ccf5d13e9 100644 --- a/app/helpers/articles_helper.rb +++ b/app/helpers/articles_helper.rb @@ -32,8 +32,7 @@ module ArticlesHelper article.published_from_feed && article.published && article.published_at && - article.feed_source_url.present? && - article.published_at.next_day < article.crossposted_at + article.feed_source_url.present? end def get_host_without_www(url) diff --git a/app/views/articles/_actions.html.erb b/app/views/articles/_actions.html.erb index b8dfc0e3a..e4ddf5697 100644 --- a/app/views/articles/_actions.html.erb +++ b/app/views/articles/_actions.html.erb @@ -27,6 +27,6 @@ <% unless user_signed_in? %>
dev.to is where software developers publish and get feedback. - And signing up takes six seconds + Signing up (for free!) is the first step.
<% end %>