#38 Change limited_scope to circle when personal post is added mentions
This commit is contained in:
parent
b1759f2c10
commit
62b7b7a9b9
3 changed files with 53 additions and 1 deletions
|
@ -167,7 +167,13 @@ class UpdateStatusService < BaseService
|
|||
|
||||
def update_metadata!
|
||||
ProcessHashtagsService.new.call(@status)
|
||||
ProcessMentionsService.new.call(@status)
|
||||
process_mentions_service.call(@status)
|
||||
|
||||
@status.update(limited_scope: :circle) if process_mentions_service.mentions?
|
||||
end
|
||||
|
||||
def process_mentions_service
|
||||
@process_mentions_service ||= ProcessMentionsService.new
|
||||
end
|
||||
|
||||
def broadcast_updates!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue