-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add the mimetype to the preview arrays #300
Conversation
I am not sure, ideally there would be a way so that client get informed, once every app version has this included, so that I can remove the legacy code. Are capabilities the best way for this? They cannot be removed at all, or other apps might break? |
@nickvergessen can you update this to latest master? This fails due to unsafe-eval. |
Simple rebasing seems to be enough |
@nickvergessen objects is not documented here: https://github.com/nextcloud/activity/blob/master/docs/endpoint-v2.md Can you clarify this on the following sample activity? We have objects{}, but also object_id, object_name which are the same like one (the last) of objects{}? objects{} holds the current path of the file? So on a deleted file it should be a path to trashbin?
|
@nickvergessen is there a way to backport this also to older version, e.g. those for Nc12/13? It would be a little nightmare to support both ways of preview fetching… |
No, just don't provide previews for 12/13/14 As for the object_* & objects{} information. That is the path of the moment when the activity happens. I guess the object_name should not be part of the API since it can/will change at least for files. But well, can't change the API and it was there when I started at OC back then. I will rebase this and fix the unit tests tomorrow, so we can get this in for 15 |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
19fc5e4
to
190f6c8
Compare
Rebased and fixed unit tests |
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.
Code change makes sense 👍
@tobiasKaminsky I guess a capability is needed, or will you just check for existance of the field?