mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Fix stray glitch-soc-only use of Oj gem
This commit is contained in:
@@ -142,7 +142,7 @@ class FeedManager
|
||||
def unpush_from_direct(account, status, update: false)
|
||||
return false unless remove_from_feed(:direct, account.id, status)
|
||||
|
||||
redis.publish("timeline:direct:#{account.id}", Oj.dump(event: :delete, payload: status.id.to_s)) unless update
|
||||
redis.publish("timeline:direct:#{account.id}", { event: :delete, payload: status.id.to_s }.to_json) unless update
|
||||
true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user