#38 Change limited_scope to circle when personal post is added mentions

This commit is contained in:
KMY 2023-09-28 16:16:24 +09:00
parent b1759f2c10
commit 62b7b7a9b9
3 changed files with 53 additions and 1 deletions

View file

@ -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!