mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-18 00:54:49 +01:00
Quick fix for avatars with the same URL not being perceived as updated and in need of re-download
This commit is contained in:
parent
8b16f81882
commit
f2931af61e
@ -275,6 +275,6 @@ module AtomBuilderHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def single_link_avatar(xml, account, size, px)
|
def single_link_avatar(xml, account, size, px)
|
||||||
xml.link('rel' => 'avatar', 'type' => account.avatar_content_type, 'media:width' => px, 'media:height' => px, 'href' => full_asset_url(account.avatar.url(size, false)))
|
xml.link('rel' => 'avatar', 'type' => account.avatar_content_type, 'media:width' => px, 'media:height' => px, 'href' => full_asset_url(account.avatar.url(size)))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@ Nokogiri::XML::Builder.new do |xml|
|
|||||||
title xml, @account.display_name
|
title xml, @account.display_name
|
||||||
subtitle xml, @account.note
|
subtitle xml, @account.note
|
||||||
updated_at xml, stream_updated_at
|
updated_at xml, stream_updated_at
|
||||||
logo xml, full_asset_url(@account.avatar.url( :original))
|
logo xml, full_asset_url(@account.avatar.url(:original))
|
||||||
|
|
||||||
author(xml) do
|
author(xml) do
|
||||||
include_author xml, @account
|
include_author xml, @account
|
||||||
|
Loading…
Reference in New Issue
Block a user