Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
e625425c
Commit
e625425c
authored
6 years ago
by
ThibG
Committed by
Eugen Rochko
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Include replies to list owner and replies to list members in list statuses (#9324)
parent
f13d0831
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/feed_manager.rb
+5
-1
app/lib/feed_manager.rb
with
5 additions
and
1 deletion
+5
-1
app/lib/feed_manager.rb
+
5
-
1
View file @
e625425c
...
...
@@ -40,7 +40,11 @@ class FeedManager
end
def
push_to_list
(
list
,
status
)
return
false
if
status
.
reply?
&&
status
.
in_reply_to_account_id
!=
status
.
account_id
if
status
.
reply?
&&
status
.
in_reply_to_account_id
!=
status
.
account_id
should_filter
=
status
.
in_reply_to_account_id
!=
list
.
account_id
should_filter
&&=
!
ListAccount
.
where
(
list_id:
list
.
id
,
account_id:
status
.
in_reply_to_account_id
).
exists?
return
false
if
should_filter
end
return
false
unless
add_to_feed
(
:list
,
list
.
id
,
status
)
trim
(
:list
,
list
.
id
)
PushUpdateWorker
.
perform_async
(
list
.
account_id
,
status
.
id
,
"timeline:list:
#{
list
.
id
}
"
)
if
push_update_required?
(
"timeline:list:
#{
list
.
id
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment