statamic / collaboration

Real-time, multi-user editing with Statamic via websockets
https://statamic.com/addons/statamic/collaboration
33 stars 13 forks source link

Collaboration addon thumbnails appear broken when mixing local and production users #82

Closed paradise-london closed 1 year ago

paradise-london commented 1 year ago

Bug description

The Issue

If you run the Collaboration addon on both local environment production environments, a local user's avatar will appear as a broken thumbnail to the production user.

Here are a couple of screenshots from different Statamic installations

Screenshot 2023-05-15 at 12 16 08 Screenshot 2023-05-15 at 12 18 34

More information

This happens on both v3 and v4

I suppose you could just say "Don't run the addon locally" but since I work locally 90% of the time, including making edits, using Collaboration is really handy to see if a user is editing the same page I'm on, so I know to avoid conflicts. It works great between local/production apart from this thumbnail issue.

How to reproduce

  1. Set up Collaboration locally
  2. Set up Collaboration on a production environment
  3. Log in as user1 on a particular entry on the local environment
  4. Log in as user2 on the same entry on the production environment
  5. On the production environment, observe user1's avatar appears as a broken thumbnail

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 9.52.5
PHP Version: 8.1.5
Composer Version: 2.3.3
Environment: local
Debug Mode: ENABLED
URL: thelens.wip
Maintenance Mode: OFF

Cache
Config: CACHED
Events: NOT CACHED
Routes: CACHED
Views: CACHED

Drivers
Broadcasting: pusher
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 3
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 3.4.9 PRO

Statamic Addons
jaygeorge/admin-styler: dev-main
statamic/collaboration: 0.6.0
statamic/seo-pro: 4.0.1

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

runtime (new)

Additional details

No response

duncanmcclean commented 1 year ago

As this is an issue with the Collaboration addon, which is separate to the CMS itself, please open an issue on the Collaboration addon's repository instead.

jasonvarga commented 1 year ago

What are the URLs? Please show both URLs, on both environments.

jasonvarga commented 1 year ago

Didn't notice the second post here. Closing here in favor of that.