Skip to content

Commit

Permalink
try to make this a bit clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconsaurus committed Feb 24, 2025
1 parent 7507a0a commit 00dd298
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/concerns/project_media_creators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,10 @@ def set_media_type
else
self.media_type = 'Link'
end
elsif original_claim
elsif original_claim || self.quote.present?
self.media_type = 'Claim'
elsif !self.url.blank?
elsif self.url.present?
self.media_type = 'Link'
elsif !self.quote.blank?
self.media_type = 'Claim'
end
end

Expand Down

0 comments on commit 00dd298

Please sign in to comment.