Rails 7.0 update (#25668)
This commit is contained in:
@@ -37,7 +37,7 @@ class InlineRenderer
|
||||
private
|
||||
|
||||
def preload_associations_for_status
|
||||
ActiveRecord::Associations::Preloader.new.preload(@object, {
|
||||
ActiveRecord::Associations::Preloader.new(records: @object, associations: {
|
||||
active_mentions: :account,
|
||||
|
||||
reblog: {
|
||||
|
@@ -16,7 +16,7 @@ class RSS::Channel < RSS::Element
|
||||
end
|
||||
|
||||
def last_build_date(date)
|
||||
append_element('lastBuildDate', date.to_formatted_s(:rfc822))
|
||||
append_element('lastBuildDate', date.to_fs(:rfc822))
|
||||
end
|
||||
|
||||
def image(url, title, link)
|
||||
|
@@ -20,7 +20,7 @@ class RSS::Item < RSS::Element
|
||||
end
|
||||
|
||||
def pub_date(date)
|
||||
append_element('pubDate', date.to_formatted_s(:rfc822))
|
||||
append_element('pubDate', date.to_fs(:rfc822))
|
||||
end
|
||||
|
||||
def description(str)
|
||||
|
Reference in New Issue
Block a user