Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
8198922 to
452671e
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
452671e to
c7a8384
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
ChristophWurst
left a comment
There was a problem hiding this comment.
looks good, just some typos and nitpicks :-)
docs/create.md
Outdated
| To create and publish an event to the activity app, a new `IEvent` should be fetched from the activity manager and afterwards be passed to the `publish()` method: | ||
|
|
||
| ```php | ||
| $event = \OC::$server->getActivityManager()->createEvent(); |
There was a problem hiding this comment.
we should also mention that IManager can be injected into classes, which is obviously preferred over querying the server directly. Expect people to copy sample code from the docs :-)
docs/create.md
Outdated
| \OC::$server->getActivityManager()->publish($event); | ||
| ``` | ||
|
|
||
| Tthe following values **must** be set, before publishing an event: |
There was a problem hiding this comment.
- "Tthe" ;-)
- remove the comma
| * `setType()` | ||
| * `setAffectedUser()` | ||
| * `setAuthor()` | ||
| * `setTimestamp()` |
There was a problem hiding this comment.
I didn't set a timestamp in twofactor_totp and it still worked 🙈
There was a problem hiding this comment.
docs/provider.md
Outdated
|
|
||
| ### Check responsibility | ||
|
|
||
| The first thing the provider should do, is to check whether the `IEvent` is on it cares about. A simple check for the app and maybe additionally the type, if the app has more then one provider, should be enough: |
docs/provider.md
Outdated
|
|
||
| ### Long translations with "rich object" string | ||
|
|
||
| In the long version for the normal activity stream contains the filename. Objects like users , files and more can be highlighted in the "rich subject", which allows the app to show an avatar next to the name, link the file name to the file list, and many more things. |
There was a problem hiding this comment.
remove space before comma
There was a problem hiding this comment.
remove comma before "and" at the end of the last sentence
docs/provider.md
Outdated
| The `IEvent::setRichSubject()` method has two arguments: | ||
|
|
||
| 1. The already translated string with placeholders | ||
| 2. The list of placeholders, in the case of the favorite provider it's the file that was favorites |
There was a problem hiding this comment.
"was marked as favorit"?
| * Both events need to have the same subject `getSubject()` | ||
| * Both events need to have the same object type `getObjectType()` | ||
| * The time difference between both events must not be bigger then 3 hours | ||
| * Only up to 5 events can be merged. |
There was a problem hiding this comment.
why do we have a limit of 5 events? Imagine I upload a series of photos, say a batch of 500. I don't want to see 100 activities.
There was a problem hiding this comment.
Well the API queries 30 entries at once, so that is the highest limit. But then again, when you dont see thumbnails and file names but just a "and 100 more" it's of no use either. We can discuss this further in the future, but for now that is the limitation.
docs/setting.md
Outdated
|
|
||
| ## Name | ||
|
|
||
| The name **must** already be translated and should bea short and descriptive sentence. One or two important words can also be highlighted using the `<strong>` HTML tag, to allow easier recognition of the setting. |
docs/setting.md
Outdated
|
|
||
| ## Is default enabled stream / mail | ||
|
|
||
| The two "is default enabled x" booleans specify whether the setting is enabled or disabled by default for the stream or mail. Once a user changed their setting, the default is not used for them anymore. Changing the default is therefor not "retro active". |
There was a problem hiding this comment.
http://dict.leo.org/ende/index_de.html#/search=therefor&searchLoc=0&resultOrder=basic&multiwordShowSingle=on&pos=0 apparently both are fine, one is formal the other informal.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Uh oh!
There was an error while loading. Please reload this page.