diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-24 17:55:00 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-24 17:55:00 -0300 |
commit | 64b4a5e6355872c49429f1d19c3403277d032b6c (patch) | |
tree | f7224646e1e9027e57df895648d54ac132005677 /src/content/dependencies/generateReleaseInfoContributionsLine.js | |
parent | 0020a0de027d04607c7765c84b891750dc35f41b (diff) |
content: linkContribution: take standard {who, what} object
This is what's used for all contributions anyway, so no need to have every call to linkContribution manually destructure whatever contribution is being provided.
Diffstat (limited to 'src/content/dependencies/generateReleaseInfoContributionsLine.js')
-rw-r--r-- | src/content/dependencies/generateReleaseInfoContributionsLine.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/content/dependencies/generateReleaseInfoContributionsLine.js b/src/content/dependencies/generateReleaseInfoContributionsLine.js index 78d3e506..5a97e651 100644 --- a/src/content/dependencies/generateReleaseInfoContributionsLine.js +++ b/src/content/dependencies/generateReleaseInfoContributionsLine.js @@ -13,8 +13,7 @@ export default { contributionLinks: contributions .slice(0, 4) - .map(({who, what}) => - relation('linkContribution', who, what)), + .map(contrib => relation('linkContribution', contrib)), }; }, |