mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-09-19 08:28:55 +00:00
12 lines
294 B
Ruby
12 lines
294 B
Ruby
class HashtagChannel < ApplicationCable::Channel
|
|
def subscribed
|
|
tag = params[:tag].downcase
|
|
|
|
stream_from "timeline:hashtag:#{tag}", lambda { |encoded_message|
|
|
status, message = hydrate_status(encoded_message)
|
|
next if filter?(status)
|
|
transmit message
|
|
}
|
|
end
|
|
end
|