ProjectLibertyLabs / social-app-template

Social Application Template that uses Gateway Services
Apache License 2.0
1 stars 4 forks source link

bug: Replies are not showing up in real-time after posting, but do show up on initial scan #137

Closed mattheworris closed 3 months ago

mattheworris commented 3 months ago

Description

content-watcher should find any Replies on chain and announce them to the backend. However, when the backend receives the announcement, the replies may not be correctly stored in the db cache, and therefore not displayed in the feeds.

I think there must be a difference in the code path for storing content from the initial scan and the ongoing end-of-chain scan.

Debugging Notes

social-app-template-backend implemented a cache for post data, and Replies do not display in the feed because the cache is not properly invalidated. Cache items that have replies need to be refreshed in order to display them correctly.

Acceptance Criteria