Add originally_published_at for more accurate crossposted info (#2076)
This commit is contained in:
parent
8d57d45ecc
commit
e3760fc215
2 changed files with 3 additions and 2 deletions
|
|
@ -141,7 +141,7 @@
|
|||
Originally published at
|
||||
<a href="<%= @article.canonical_url || @article.feed_source_url %>" style="color:#1395b8"><%= get_host_without_www(@article.canonical_url || @article.feed_source_url) %></a>
|
||||
on
|
||||
<span class="posted-date-inline"><%= @article.published_at.strftime("%b %d, %Y") if @article.crossposted_at %></span>
|
||||
<span class="posted-date-inline"><%= (@article.originally_published_at || @article.published_at).strftime("%b %d, %Y") if @article.crossposted_at %></span>
|
||||
</em>
|
||||
</span>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue