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

Public activity in user profile not shown #21180

Open
lafriks opened this issue Sep 15, 2022 · 3 comments
Open

Public activity in user profile not shown #21180

lafriks opened this issue Sep 15, 2022 · 3 comments
Labels

Comments

@lafriks
Copy link
Member

lafriks commented Sep 15, 2022

Description

When server is private than when opening user profile it's public activity is shown only for admin users, for other users it's hidden

Gitea Version

1.17.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Not relevant

Database

No response

@lunny
Copy link
Member

lunny commented Sep 16, 2022

Is the user public or private?

@lafriks
Copy link
Member Author

lafriks commented Sep 16, 2022

As I could not replicate issue on my local instance, I tracked down issue to user table column keep_activity_private had null values instead of false. Still have no idea how they got there... could be either broken migration when column was added or ldap sync adding null values there 🤔

Anyway we should really make rule in database that all bool columns in database should be not null this would prevent such issues.

in case anyone else has this issue, temporary fix is to run this update in gitea database:

update "user" set keep_activity_private = false where keep_activity_private is null;

@KN4CK3R
Copy link
Member

KN4CK3R commented Sep 18, 2022

@lafriks see #18871

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants