Skip to content
Snippets Groups Projects

interaction with BE private mode

Merged kaniini requested to merge feature/lockdown-timelines-private-mode into develop
All threads resolved!

This MR basically removes links and other UI elements for guest users that will not work when private mode is enabled.

Edited by kaniini

Merge request reports

Pipeline #21105 passed

Pipeline passed for d899d069 on feature/lockdown-timelines-private-mode

Approval is optional

Merged by feldfeld 5 years ago (Dec 13, 2019 4:58pm UTC)

Merge details

  • Changes merged into with 0b49e798.
  • Deleted the source branch.

Pipeline #21135 passed

Pipeline passed for 0b49e798 on develop

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • Maintainer
      Resolved by feld

      Not sure how exactly private mode works, but hacking it in FE to be true still allows opening public timeline and twkn via direct link/if instance has those pages set up as default redirect for logged-out visitors. Probably should redirect them to /about or something?

  • Maintainer

    non-private mode seems to be working fine.

  • Maintainer

    In the BE private: true is not the same as federating: false

    You can have a server that is Federating but is Private. So why remove TWKN and other federating features for private?

  • Maintainer

    because BE will deny unauthorized access to those timelines?

  • Maintainer

    Alright, so we need a separate MR for federating: false then as well which does pretty much all of this but also affects when you're logged in.

  • Author Contributor

    No, we won't need that, this MR already handles federating just fine. The conditionals are short-circuiting in JavaScript.

  • Maintainer

    Is this ready to be merged?

  • Maintainer

    Checking in again

  • feld added 62 commits

    added 62 commits

    Compare with previous version

  • feld added 2 commits

    added 2 commits

    Compare with previous version

  • feld added 1 commit

    added 1 commit

    Compare with previous version

  • feld added 1 commit

    added 1 commit

    Compare with previous version

  • feld added 2 commits

    added 2 commits

    • 2514dc18 - Logic should be to hide TWKN if not federating OR if instance is not public
    • 0743fbb2 - The value we are looking for is federationPolicy.enabled, not federationPolicy.federating

    Compare with previous version

  • feld added 1 commit

    added 1 commit

    • 8d14036a - Add fallback in case BE does not report federating status in nodeinfo

    Compare with previous version

  • feld resolved all threads

    resolved all threads

  • feld added 1 commit

    added 1 commit

    • d899d069 - Use a centralized fallback for missing values and use instance.federating instead of

    Compare with previous version

  • merged

  • feld mentioned in commit 0b49e798

    mentioned in commit 0b49e798

  • a1batross mentioned in issue #759 (closed)

    mentioned in issue #759 (closed)

  • Please register or sign in to reply
    Loading