FreeFeed / freefeed-server

FreeFeed server
https://freefeed.net
MIT License
41 stars 18 forks source link

Backlinks server-side support #536

Closed davidmz closed 3 years ago

davidmz commented 3 years ago

All serialized posts now have a new numeric 'backlinksCount' field. This field is the count of texts (posts or comments) that mentioned the post's UUID and visible to the current user. The client should display this count as a link to the search by post's UUID.

When the post has new or removed mention in somewhere, the 'post:update' realtime message is delivered with the updated backlinksCount.

It is also recommended to re-run the search indexer (yarn babel bin/reindex_search.js) after this changes applied. The indexing of UUIDs in the plain texts (not in URLs) is slightly changed, so in rare cases the search may work incorrectly. These changes are not affects the backlinks functionality, though.

indeyets commented 3 years ago

Меня немного смущает рост количества запросов для формирования ленты. но в динамической среде у нас не то чтобы была возможность обойтись без этого…