diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index 64348da5d..ce5777234 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -141,7 +141,7 @@ Originally published at <%= get_host_without_www(@article.canonical_url || @article.feed_source_url) %> on - <%= @article.published_at.strftime("%b %d, %Y") if @article.crossposted_at %> + <%= (@article.originally_published_at || @article.published_at).strftime("%b %d, %Y") if @article.crossposted_at %> <% end %> diff --git a/db/schema.rb b/db/schema.rb index df8ae562f..843bf683c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20190315151829) do +ActiveRecord::Schema.define(version: 20190315222044) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -93,6 +93,7 @@ ActiveRecord::Schema.define(version: 20190315151829) do t.string "main_tag_name_for_social" t.string "name_within_collection" t.integer "organization_id" + t.datetime "originally_published_at" t.integer "page_views_count", default: 0 t.boolean "paid", default: false t.string "password"