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

Block new articles from blocked users #297

Closed MrOrz closed 1 year ago

MrOrz commented 1 year ago

In https://github.com/cofacts/rumors-api/pull/293 we introduced status field for articles, but we set all article's status to NORMAL.

In this PR, we apply changes similar to other APIs to determine the default status of an article by if the user is blocked.

coveralls commented 1 year ago

Coverage Status

Coverage: 88.003%. Remained the same when pulling 5ae648a7556ffe745273160d3ad43195160979ef on block-new-articles into 6fa6dc1bf7ae443afe40bc425fe63fbe6e6ce828 on master.