cofacts / rumors-api

GraphQL API server for clients like rumors-site and rumors-line-bot
https://api.cofacts.tw
MIT License
109 stars 26 forks source link

Related media articles #291

Closed MrOrz closed 1 year ago

MrOrz commented 1 year ago

This PR allows Article's relatedArticles to find articles with similar media entry hash (attachmentHash).

So that even if image articles does not have any transcription, we can get similar articles by attachment hash: image

Edge case: articles are generated back-to-back (within 1 second) so that hash are all the same 圖片

coveralls commented 1 year ago

Coverage Status

Coverage increased (+0.05%) to 87.818% when pulling af663d7e8dcf24a31cd2d0339087c6fa0b9fd92b on related-media-articles into d4b691d7df3447e004a1c3910b664f921dd2297f on master.