Skip to content
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

Link mentioned user in markdown only if they are visible to viewer #21554

Merged
merged 9 commits into from
Oct 23, 2022
Prev Previous commit
Next Next commit
Ease log level
Signed-off-by: Yarden Shoham <[email protected]>
  • Loading branch information
yardenshoham committed Oct 22, 2022
commit d5687d2c185149f1e2ba0066a5e433fdabf4721e
2 changes: 1 addition & 1 deletion services/markup/processorhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func ProcessorHelper() *markup.ProcessorHelper {

moduleCtx, ok := ctx.(*module_context.Context)
yardenshoham marked this conversation as resolved.
Show resolved Hide resolved
if !ok {
log.Error("couldn't cast context, assuming user should be visible based on their visibility")
log.Warn("couldn't cast context, assuming user should be visible based on their visibility")
return mentionedUser.Visibility.IsPublic()
}

Expand Down