Skip to content

OpenConceptLab/ocl_online#488 | Skip follows with no object, and load a user's pins only for that user or staff - #101

Merged
snyaggarwal merged 1 commit into
mainfrom
ocl_online#488
Nov 12, 2026
Merged

snyaggarwal merged 1 commit into
mainfrom
ocl_online#488

Conversation

@snyaggarwal

Copy link
Copy Markdown
Contributor

Prepares TBv3 for OpenConceptLab/oclapi2#990 (OpenConceptLab/ocl_online#488). Deploy this before #990 reaches production.

  • Follows with no object: with #990, a user's own following list keeps follows of objects they can no longer view, with object: null. The left menu and the profile's Following list now skip them instead of crashing on followed.url.
  • User pins: with #990, /users/<u>/pins/ answers only that user and staff (401 anonymous, 403 others). The profile page now loads a user's pins only for that user or staff. Before, an anonymous visitor's 401 started the renew-or-sign-out path and sent them to sign in. Org pins are unchanged.

Not in this PR: an unfollow for follows of objects the user can no longer view. The API allows it now (DELETE /users/<u>/following/<id>/), but TBv3 has no list to offer it from yet.

Tests: npm test (146 pass, including new tests for both rules); ESLint clean on the changed files.

🤖 Generated with Claude Code

… a user's pins only for that user or staff
@snyaggarwal
snyaggarwal requested a review from paynejd November 12, 2026 02:58
@snyaggarwal
snyaggarwal merged commit d34b968 into main Nov 12, 2026
2 checks passed
@snyaggarwal
snyaggarwal deleted the ocl_online#488 branch November 12, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant