Commit 352217c5 authored by Rob Colbert's avatar Rob Colbert

process_quote_service call made conditional

parent 0bd0d164
...@@ -68,7 +68,9 @@ class PostStatusService < BaseService ...@@ -68,7 +68,9 @@ class PostStatusService < BaseService
process_hashtags_service.call(@status) process_hashtags_service.call(@status)
process_mentions_service.call(@status) process_mentions_service.call(@status)
process_quote_service.call(@status) if @status.quote
process_quote_service.call(@status)
end
end end
def schedule_status! def schedule_status!
...@@ -98,7 +100,7 @@ class PostStatusService < BaseService ...@@ -98,7 +100,7 @@ class PostStatusService < BaseService
def validate_group! def validate_group!
group_id = @options[:group_id] group_id = @options[:group_id]
return if group_id.blank? return if group_id.blank?
raise GabSocial::ValidationError, I18n.t('statuses.not_a_member_of_group') if not GroupAccount.where(account: @account, group_id: group_id).exists? raise GabSocial::ValidationError, I18n.t('statuses.not_a_member_of_group') if not GroupAccount.where(account: @account, group_id: group_id).exists?
...@@ -121,7 +123,7 @@ class PostStatusService < BaseService ...@@ -121,7 +123,7 @@ class PostStatusService < BaseService
def process_quote_service def process_quote_service
ProcessQuoteService.new ProcessQuoteService.new
end end
def process_mentions_service def process_mentions_service
ProcessMentionsService.new ProcessMentionsService.new
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment