Revert streaming removals 2c8b4f7fb, 574b45e04, 8313f4b11

• Revert:
- streaming removals 2c8b4f7fb, 574b45e04, 8313f4b11
This commit is contained in:
mgabdev 2021-01-25 15:52:52 -05:00
parent e8a436f865
commit b4ba3c70ef
6 changed files with 10 additions and 10 deletions

View File

@ -109,9 +109,9 @@ export default class GabSocial extends React.PureComponent {
componentDidMount() { componentDidMount() {
if (!!me) { if (!!me) {
// this.disconnect = store.dispatch(connectUserStream()) this.disconnect = store.dispatch(connectUserStream())
// store.dispatch(connectStatusUpdateStream()) store.dispatch(connectStatusUpdateStream())
// store.dispatch(connectChatMessagesStream(me)) store.dispatch(connectChatMessagesStream(me))
} }
console.log('%cGab Social ', [ console.log('%cGab Social ', [

View File

@ -43,7 +43,7 @@ class CustomFilter < ApplicationRecord
def remove_cache def remove_cache
Rails.cache.delete("filters:#{account_id}") Rails.cache.delete("filters:#{account_id}")
# Redis.current.publish("timeline:#{account_id}", Oj.dump(event: :filters_changed)) Redis.current.publish("timeline:#{account_id}", Oj.dump(event: :filters_changed))
end end
def context_must_be_valid def context_must_be_valid

View File

@ -180,8 +180,8 @@ class FetchLinkCardService < BaseService
end end
def send_status_update_payload(status) def send_status_update_payload(status)
# @payload = InlineRenderer.render(status, nil, :status) @payload = InlineRenderer.render(status, nil, :status)
# @payload = Oj.dump(event: :update, payload: @payload) @payload = Oj.dump(event: :update, payload: @payload)
# Redis.current.publish("statuscard:#{status.account_id}", @payload) Redis.current.publish("statuscard:#{status.account_id}", @payload)
end end
end end

View File

@ -92,7 +92,7 @@ class NotifyService < BaseService
def push_notification! def push_notification!
return if @notification.activity.nil? return if @notification.activity.nil?
# Redis.current.publish("timeline:#{@recipient.id}", Oj.dump(event: :notification, payload: InlineRenderer.render(@notification, @recipient, :notification))) Redis.current.publish("timeline:#{@recipient.id}", Oj.dump(event: :notification, payload: InlineRenderer.render(@notification, @recipient, :notification)))
send_push_notifications! send_push_notifications!
end end

View File

@ -118,7 +118,7 @@ class PostStatusService < BaseService
def postprocess_status! def postprocess_status!
LinkCrawlWorker.perform_async(@status.id) LinkCrawlWorker.perform_async(@status.id)
# DistributionWorker.perform_async(@status.id) DistributionWorker.perform_async(@status.id)
ExpiringStatusWorker.perform_at(@status.expires_at, @status.id) if @status.expires_at && @account.is_pro ExpiringStatusWorker.perform_at(@status.expires_at, @status.id) if @status.expires_at && @account.is_pro
PollExpirationNotifyWorker.perform_at(@status.poll.expires_at, @status.poll.id) if @status.poll PollExpirationNotifyWorker.perform_at(@status.poll.expires_at, @status.poll.id) if @status.poll
end end

View File

@ -28,7 +28,7 @@ class ReblogService < BaseService
text = options[:status] || '' text = options[:status] || ''
reblog = account.statuses.create!(reblog: reblogged_status, text: text, visibility: visibility) reblog = account.statuses.create!(reblog: reblogged_status, text: text, visibility: visibility)
# DistributionWorker.perform_async(reblog.id) DistributionWorker.perform_async(reblog.id)
create_notification(reblog) create_notification(reblog)
bump_potential_friendship(account, reblog) bump_potential_friendship(account, reblog)