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

Slack avatars not bridged reliably #12

Open
CyberShadow opened this issue Jan 20, 2023 · 1 comment
Open

Slack avatars not bridged reliably #12

CyberShadow opened this issue Jan 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@CyberShadow
Copy link

After setting up the bridge, I've noticed that only some of the bridged Slack users have avatars.

Not sure what the pattern is.

@CyberShadow CyberShadow added the bug Something isn't working label Jan 20, 2023
@slagiewka
Copy link

I did some digging:

db=# select avatar, avatar_url, avatar_set from puppet where avatar_url = '' or avatar = '';
 avatar | avatar_url | avatar_set 
--------+------------+------------
        |            | t
        |            | t
        |            | t
        |            | t
        |            | t
        |            | t
        |            | t
        |            | f
        |            | t
        |            | t
        |            | t
        |            | t
        |            | t
        |            | t
        |            | t
        |            | t
        |            | t
        |            | f
        |            | t
        |            | f
        |            | t
(21 rows)

It seems that for some reason, there are entries for other users (puppets) that have avatar_set = TRUE while not having any links there.
One occurrence of FALSE is where I set it manually. The other two occurrences are some weird puppets that don't even have name set.

I went with:

update puppet set avatar_set = FALSE where avatar = '' and avatar_url = '';

And then I changed the config for user display. A friend wrote to me, their name's changed and now I have

db=# select avatar, avatar_url, avatar_set from puppet where avatar_url = '' or avatar = '';
 avatar | avatar_url | avatar_set 
--------+------------+------------
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | f
        |            | t <--
(21 rows)

So there's been an update to the row, but not to the avatar details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants