Skip to content

Commit 686d0b9

Browse files
committed
plugin loading
1 parent cbca68c commit 686d0b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

0000-plugins.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ TODO
1919

2020
# Reference-level explanation
2121

22+
Plugins are loaded from `./plugins/*.wasm` at startup. The endpoint `/api/v4/site` gets a new field `active_plugins`.
23+
2224
## Plugin Hooks
2325

2426
Lemmy will have to add hooks for specific actions, which can then be used by plugins. In general there are two types of hooks: before an action is written to the database, so it can be rejected or altered. And after it is written to the database, mainly for different types of notifications.
@@ -128,7 +130,7 @@ These can mainly serve as proof of concept, and as examples which can be modifie
128130
129131
## Plugin Licensing
130132
131-
Plugins can use any [OSI-approved open source licenses](https://opensource.org/licenses). Unlike Lemmy's AGPL license, most of them don't require sharing the source code with people who use it over a network, so the source code only needs to be made available to server admins.
133+
Plugins can use any [OSI-approved open source licenses](https://opensource.org/licenses). Unlike Lemmy's AGPL license, most of them don't require sharing the source code with people who use it over a network, so the source code only needs to be made available to server admins. This also allows for for paid plugins.
132134
133135
# Drawbacks
134136

0 commit comments

Comments
 (0)