bluesky-social / atproto

Social networking technology created by Bluesky
Other
7.2k stars 510 forks source link

Return empty cursor if feed echoes input cursor #2989

Closed rafaelbsky closed 1 week ago

rafaelbsky commented 1 week ago

If a custom feed generator had buggy/malicious code that echoed back to the response cursor the same value as the input cursor, this would cause an infinite loop for a client trying to paginate.

This returns an empty cursor if the returned cursor from the feed generator is the same as the one passed to it. That will effectively stop the pagination.