activitypub-academy/app/lib/activity_log_publisher.rb
2023-01-09 21:46:58 +01:00

10 lines
189 B
Ruby

class ActivityLogPublisher
def initialize
@redis = RedisConfiguration.new.connection
end
def publish(log_event)
@redis.publish('activity_log', Oj.dump(log_event))
end
end