8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/bad_pigeon/entry_filter.rb', line 8
def include_entry?(entry)
case entry.component
when Component::,
Component::,
Component::,
Component::FOLLOWING,
Component::,
Component::,
Component::EXTENDED_REPLY,
Component::SOCIAL_CONTEXT,
Component::SOCIAL_ACTIVITY,
Component::
then true
when Component::,
Component::FOLLOWING_PROMOTED,
Component::FOLLOW_SUGGESTIONS
then false
when nil
true
else
assert("Unknown component: #{entry.component}")
false
end
end
|