Skip to content

Instantly share code, notes, and snippets.

@tsutsui
Created December 20, 2021 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsutsui/3e350461c490cc90ba7e3a7a16089448 to your computer and use it in GitHub Desktop.
Save tsutsui/3e350461c490cc90ba7e3a7a16089448 to your computer and use it in GitHub Desktop.
https://github.com/mikutter/streamin の修正で https://github.com/mikutter/list が荒ぶるのをなんとかして見るテスト
diff --git a/list.rb b/list.rb
index 43ab6b3..0cffc5d 100644
--- a/list.rb
+++ b/list.rb
@@ -39,7 +39,9 @@ Plugin.create :list do
# リストのタイムラインをリアルタイム更新する
on_appear do |messages|
using_lists.each do |list|
- Plugin.call(:extract_receive_message, datasource_slug(list), messages.lazy.select(&list.method(:related?))) end end
+ Plugin.call(:extract_receive_message, datasource_slug(list), messages.lazy.select(&list.method(:related?)).select { |m| !m.retweet_source || list.member?(m.user) } )
+ end
+ end
on_world_after_created do |world|
fetch_and_modify_for_using_lists(world) if world.class.slug == :twitter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment