Public and hashtag timelines now exclude reblogs and replies
Fix #289 - don't download avatar unless the URL is http/https Fix #293 - reblog/reblogged is now boost/boosted
This commit is contained in:
parent
054138797f
commit
8a4913fde0
4 changed files with 19 additions and 13 deletions
|
@ -116,7 +116,11 @@ class Account < ApplicationRecord
|
|||
end
|
||||
|
||||
def avatar_remote_url=(url)
|
||||
self.avatar = URI.parse(url) unless self[:avatar_remote_url] == url
|
||||
parsed_url = URI.parse(url)
|
||||
|
||||
return if !%w(http https).include?(parsed_url.scheme) || self[:avatar_remote_url] == url
|
||||
|
||||
self.avatar = parsed_url
|
||||
self[:avatar_remote_url] = url
|
||||
rescue OpenURI::HTTPError => e
|
||||
Rails.logger.debug "Error fetching remote avatar: #{e}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue