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
process_hashtags_service.call(@status)
process_mentions_service.call(@status)
process_quote_service.call(@status)
if @status.quote
process_quote_service.call(@status)
end
end
def schedule_status!
......@@ -98,7 +100,7 @@ class PostStatusService < BaseService
def validate_group!
group_id = @options[:group_id]
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?
......@@ -121,7 +123,7 @@ class PostStatusService < BaseService
def process_quote_service
ProcessQuoteService.new
end
def process_mentions_service
ProcessMentionsService.new
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