Skip to content

Commit bd631f1

Browse files
committed
try to make this a bit clearer
1 parent aacf3aa commit bd631f1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/models/concerns/project_media_creators.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,10 @@ def set_media_type
133133
else
134134
self.media_type = 'Link'
135135
end
136-
elsif original_claim
136+
elsif original_claim || self.quote.present?
137137
self.media_type = 'Claim'
138-
elsif !self.url.blank?
138+
elsif self.url.present?
139139
self.media_type = 'Link'
140-
elsif !self.quote.blank?
141-
self.media_type = 'Claim'
142140
end
143141
end
144142

0 commit comments

Comments
 (0)