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:
@ -41,14 +41,17 @@ class FanOutOnWriteService < BaseService
|
||||
end
|
||||
|
||||
def deliver_to_hashtags(status)
|
||||
Rails.logger.debug "Delivering status #{status.id} to hashtags"
|
||||
return if status.reblog? || status.reply?
|
||||
|
||||
Rails.logger.debug "Delivering status #{status.id} to hashtags"
|
||||
status.tags.find_each do |tag|
|
||||
FeedManager.instance.broadcast("hashtag:#{tag.name}", type: 'update', id: status.id)
|
||||
end
|
||||
end
|
||||
|
||||
def deliver_to_public(status)
|
||||
return if status.reblog? || status.reply?
|
||||
|
||||
Rails.logger.debug "Delivering status #{status.id} to public timeline"
|
||||
FeedManager.instance.broadcast(:public, type: 'update', id: status.id)
|
||||
end
|
||||
|
Reference in New Issue
Block a user