3.0 KiB
type: plug
uri: github:silverbulletmd/silverbullet-mattermost/mattermost.plug.json
repo: https://github.com/silverbulletmd/silverbullet-mattermost
author: Zef Hemel
Provides a mm-saved
query provider (and maybe more in the future). Please follow the installation, configuration sections, and have a look at the example.
Configuration
You need two bits of configuration to make this plug work. In SETTINGS
provide the mattermostUrl
and mattermostDefaultTeam
settings, they default to the following:
```yaml
mattermostUrl: https://community.mattermost.com
mattermostDefaultTeam: core
```
In SECRETS
provide a Mattermost personal access token (or hijack one from your current session):
```yaml
mattermostToken: your-token
```
To make this look good, it's recommended you render your query results a template. Here is one to start with, you can keep it in e.g. templates/mm-saved
:
[{{username}}]({{desktopUrl}}) in **{{channelName}}** at {{updatedAt}} {[Unsave]}:
{{prefixLines (substring message 0 300 " ... (More)") "> "}}
---
Note that the {[Unsaved]}
"button" when clicked, will unsave the post automatically 😎
Query sources
mm-saved
fetches (by default 15) saved posts in Mattermost
Example
Example uses (using the template/mm-saved
template above):
<!-- #query mm-saved order by updatedAt desc limit 5 render "template/mm-saved" -->
lindy.isherwood in R&D Meeting at 2022-07-22 {[Unsave]}:
Meeting Recording
Access Passcode:
wq$!BA6N
harrison in **** at 2022-07-20 {[Unsave]}:
Hey Zef. Can we chat about the Affirm issue a bit when I get back? From what I've gathered, Devin's told customer support that the issue in Chromium isn't something we can reasonably fix, and while I don't feel like that's anything I should be worried about since it's out of my area, I keep getting ... (More)
zef.hemel in **** at 2022-07-20 {[Unsave]}:
I'll have to get back to this tomorrow. Filename says "arm64" though
zef.hemel in **** at 2022-07-19 {[Unsave]}:
Agreed. Thinking what are better indicators than what we already ask. I’ll reach out.
zef.hemel in Team: Web Platform at 2022-07-15 {[Unsave]}:
@webplatform in yesterday’s 1:1 with @harrison we came up with the concept of “theme weeks” to solve our problem of scheduling important but not urgent work. Examples are: looking at performance improvements, cleaning/fixing lingering bugs from our backlog, working on accessibility tickets, perfor ... (More)