Federated reviews from followed users bleed into local user's profile and diary view #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug description
After following a remote user (on a different instance), their federated reviews appear in the local user's own Profile tab and Diary view as if they were the local user's own entries. The Home/Feed view correctly attributes them to the remote user with a globe 🌐 indicator.
Steps to reproduce
Expected behaviour
remote_actor_url IS NULL)Root cause
The diary SQL query (
query_diary) is missing anAND r.remote_actor_url IS NULLfilter. Federated reviews are stored in the samereviewstable with the local user's synthetic UUID asuser_id, so a bareWHERE r.user_id = ?also matches federated entries.The same filter is already present on other queries (
get_user_history,count_local_posts, etc.) but was missed inquery_diary.Fix
Already applied in both SQLite and PostgreSQL adapters:
crates/adapters/sqlite/src/diary.rscrates/adapters/postgres/src/diary.rsNeeds deployment to affected instances.
Screenshots
Profile shows 0 Movies stat but lists the remote user's full diary:

Home/Feed correctly shows the same entries attributed to the remote user with 🌐:
