-
Notifications
You must be signed in to change notification settings - Fork 152
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
Serve the profile image for the plugin from the plugin itself #50
Conversation
Could you elaborate a bit? If you use The only problem is that this approach doesn't work if |
Interesting, I was talking with @hmhealey and brought up doing that but he seemed to think that wouldn't work either. If it's working for Matterpoll then it should work here |
I will try doing that |
Please be aware of this bug: https://mattermost.atlassian.net/browse/MM-14314 You can find the Matterpoll code here. |
Updated to use the SiteURL instead of a relative URL and tested to confirm it works when the SiteURL is not localhost. |
/check-cla |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LTGM. 👍 One not blocking commend.
* add pull request template to add the release note section * add github action to notify on new releases
This is the long term fix for #46 but unfortunately it requires some changes within the Mattermost server to work properly. The issue is that the Mattermost client and server use an image proxy for profile pictures that rejects URLs using the localhost or the site URL for security reasons.
@hmhealey is going to bring this up with the Mattermost security team to discuss ways around this so that plugins can serve images used by the Mattermost clients.
Long term fixes #46