aed6116be27f051f1cb372c1955cc214f8fc26e9,dino/utils/__init__.py,,activity_for_user_joined,#Any#Any#Any#Any#Any#,328
Before Change
return ActivityBuilder.enrich({
"actor": {
"id": user_id,
"displayName": b64e(user_name),
"image": {
"url": image_url
},
After Change
def activity_for_user_joined(user_id: str, user_name: str, room_id: str, room_name: str, image_url: str) -> dict:
user_roles = environ.env.db.get_user_roles_in_room(user_id, room_id)
if not is_base64(user_name):
user_name = b64e(user_name)
return ActivityBuilder.enrich({
"actor": {
"id": user_id,
"displayName": user_name,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: thenetcircle/dino
Commit Name: aed6116be27f051f1cb372c1955cc214f8fc26e9
Time: 2021-04-07
Author: oscar@thenetcircle.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: activity_for_user_joined
Project Name: thenetcircle/dino
Commit Name: dfd2a170dd59fe1b63ff8bf8cd082d94c87feafa
Time: 2017-02-24
Author: oscar.eriks@gmail.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: activity_for_user_kicked
Project Name: thenetcircle/dino
Commit Name: 5094829dc487f2518712e4870be0aa5cf3fd0029
Time: 2018-10-08
Author: oscar.eriks@gmail.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: activity_for_leave