Fix link activity message
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
Bugfix: Fix link activity message
|
||||||
|
|
||||||
|
We changed the link token to display name in the activity message.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/10663
|
||||||
|
https://github.com/owncloud/ocis/issues/10295
|
||||||
@@ -204,7 +204,7 @@ func (s *ActivitylogService) HandleGetItemActivities(w http.ResponseWriter, r *h
|
|||||||
WithVar("resource", storagespace.FormatResourceID(ev.ItemID), ev.ResourceName),
|
WithVar("resource", storagespace.FormatResourceID(ev.ItemID), ev.ResourceName),
|
||||||
WithUser(ev.Executant, nil, nil),
|
WithUser(ev.Executant, nil, nil),
|
||||||
WithTranslation(&t, loc, "field", []string{ev.FieldUpdated}),
|
WithTranslation(&t, loc, "field", []string{ev.FieldUpdated}),
|
||||||
WithVar("token", ev.ItemID.GetOpaqueId(), ev.Token))
|
WithVar("token", ev.ItemID.GetOpaqueId(), ev.DisplayName))
|
||||||
case events.LinkRemoved:
|
case events.LinkRemoved:
|
||||||
message = MessageLinkDeleted
|
message = MessageLinkDeleted
|
||||||
ts = utils.TSToTime(ev.Timestamp)
|
ts = utils.TSToTime(ev.Timestamp)
|
||||||
|
|||||||
@@ -1161,8 +1161,7 @@ Feature: check share activity
|
|||||||
"pattern": "%user_id_pattern%"
|
"pattern": "%user_id_pattern%"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"pattern": "[a-zA-z]{15}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1235,8 +1234,7 @@ Feature: check share activity
|
|||||||
"pattern": "%user_id_pattern%"
|
"pattern": "%user_id_pattern%"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"pattern": "[a-zA-z]{15}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1309,8 +1307,7 @@ Feature: check share activity
|
|||||||
"pattern": "%user_id_pattern%"
|
"pattern": "%user_id_pattern%"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"pattern": "[a-zA-z]{15}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1473,8 +1470,7 @@ Feature: check share activity
|
|||||||
"pattern": "%user_id_pattern%"
|
"pattern": "%user_id_pattern%"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"pattern": "[a-zA-z]{15}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1547,8 +1543,7 @@ Feature: check share activity
|
|||||||
"pattern": "%user_id_pattern%"
|
"pattern": "%user_id_pattern%"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"pattern": "[a-zA-z]{15}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1621,8 +1616,7 @@ Feature: check share activity
|
|||||||
"pattern": "%user_id_pattern%"
|
"pattern": "%user_id_pattern%"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"pattern": "[a-zA-z]{15}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user