FIX: prioritize `card_html` over `article_html`.

FIX: prioritize card_html over article_html.

diff --git a/lib/onebox/engine/whitelisted_generic_onebox.rb b/lib/onebox/engine/whitelisted_generic_onebox.rb
index cb82688..f77224e 100644
--- a/lib/onebox/engine/whitelisted_generic_onebox.rb
+++ b/lib/onebox/engine/whitelisted_generic_onebox.rb
@@ -269,8 +269,8 @@ module Onebox
         return video_html    if is_video?
         return image_html    if is_image?
         return embedded_html if is_embedded?
-        return article_html  if has_text?
         return card_html     if is_card?
+        return article_html  if has_text?
       end
 
       def is_card?

GitHub sha: b1f8eafd

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: