Merge pull request #10663 from 2403905/issue-10295

Fix link activity message
This commit is contained in:
Roman Perekhod
2024-12-10 09:38:03 +01:00
committed by GitHub
3 changed files with 13 additions and 13 deletions

View File

@@ -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

View File

@@ -204,7 +204,7 @@ func (s *ActivitylogService) HandleGetItemActivities(w http.ResponseWriter, r *h
WithVar("resource", storagespace.FormatResourceID(ev.ItemID), ev.ResourceName),
WithUser(ev.Executant, nil, nil),
WithTranslation(&t, loc, "field", []string{ev.FieldUpdated}),
WithVar("token", ev.ItemID.GetOpaqueId(), ev.Token))
WithVar("token", ev.ItemID.GetOpaqueId(), ev.DisplayName))
case events.LinkRemoved:
message = MessageLinkDeleted
ts = utils.TSToTime(ev.Timestamp)

View File

@@ -1161,8 +1161,7 @@ Feature: check share activity
"pattern": "%user_id_pattern%"
},
"name": {
"type": "string",
"pattern": "[a-zA-z]{15}"
"type": "string"
}
}
},
@@ -1235,8 +1234,7 @@ Feature: check share activity
"pattern": "%user_id_pattern%"
},
"name": {
"type": "string",
"pattern": "[a-zA-z]{15}"
"type": "string"
}
}
},
@@ -1309,8 +1307,7 @@ Feature: check share activity
"pattern": "%user_id_pattern%"
},
"name": {
"type": "string",
"pattern": "[a-zA-z]{15}"
"type": "string"
}
}
},
@@ -1660,8 +1657,7 @@ Feature: check share activity
"pattern": "%user_id_pattern%"
},
"name": {
"type": "string",
"pattern": "[a-zA-z]{15}"
"type": "string"
}
}
},
@@ -1734,8 +1730,7 @@ Feature: check share activity
"pattern": "%user_id_pattern%"
},
"name": {
"type": "string",
"pattern": "[a-zA-z]{15}"
"type": "string"
}
}
},
@@ -1808,8 +1803,7 @@ Feature: check share activity
"pattern": "%user_id_pattern%"
},
"name": {
"type": "string",
"pattern": "[a-zA-z]{15}"
"type": "string"
}
}
},