yarindeoh / safe-home-haytiSham

THE MICHAL SELA HACKATHON
https://hayti-sham.co.il/
5 stars 4 forks source link

On inner story page - Hide current story from results from getStoriesByTags #215

Open moranw opened 3 years ago

moranw commented 3 years ago

Currently there's a bug when we look at a specific story page - the same story appear on the similar stories list.

When we call getStoriesByTags from the homepage it acts as usual, but when we call it from an inner story page, it should hide the current displayed story from the list. So add to the api an optional id field of a story to be hidden from the results

Alternatively it can be done only on the client side, @orlylev WDYT?

orlylev commented 3 years ago

I do not understand the requirement Do you want to filter a specific story from the response?