8000 fix: Use team name on link metadata if public branding enabled by tommoor · Pull Request #9273 · outline/outline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Use team name on link metadata if public branding enabled #9273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

tommoor
Copy link
Member
@tommoor tommoor commented May 22, 2025

closes #9269

@tommoor tommoor requested a review from Copilot May 22, 2025 00:45
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the link metadata logic to use the team name as the title when public branding is enabled.

  • Conditionally assigns the team name to the title if public branding is enabled.
  • Adjusts the arguments passed to the renderApp function in the index route.

Comment on lines 173 to +177
return renderApp(ctx, next, {
title:
team?.getPreference(TeamPreference.PublicBranding) && team.name
? team.name
: undefined,
Copy link
Preview
Copilot AI May 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider extracting the conditional assignment for title into a separate variable to improve clarity and simplify the renderApp call.

Suggested change
return renderApp(ctx, next, {
title:
team?.getPreference(TeamPreference.PublicBranding) && team.name
? team.name
: undefined,
const title =
team?.getPreference(TeamPreference.PublicBranding) && team.name
? team.name
: undefined;
return renderApp(ctx, next, {
title,

Copilot uses AI. Check for mistakes.

@tommoor tommoor marked this pull request as ready for review May 22, 2025 01:01
@tommoor tommoor merged commit 76d9a02 into main May 22, 2025
13 checks passed
@tommoor tommoor deleted the 9269-metadata-should-always-use-team-name-if-public-branding-is-enabled branch May 22, 2025 01:01
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.

Metadata should always use team name if public branding is enabled
1 participant
0