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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue