WIP: Add unlist_undescribed_media.ex to mrf policies folder #50

Draft
Beefox wants to merge 2 commits from Beefox/akkoma:mrf/unlisted_media into develop
First-time contributor

This policy allows the instance to mark media posted without an description as unlisted, for instances that do not wish for undescriped media to be visible on the local or known timelines.

Currently i am unsure of how to add this to the list of "default" polices, as such it will not appear in admin-fe; a pr to solve this or even an idea of where to look would be much appreciated before merge c:

This policy allows the instance to mark media posted without an description as unlisted, for instances that do not wish for undescriped media to be visible on the local or known timelines. Currently i am unsure of how to add this to the list of "default" polices, as such it will not appear in admin-fe; a pr to solve this or even an idea of where to look would be much appreciated before merge c:
Beefox added 1 commit 2022-07-05 14:05:45 +00:00
Add unlist_undescribed_media.ex to mrf policies folder
Some checks failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/release Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
df27266e30
Beefox added 1 commit 2022-07-05 14:07:46 +00:00
any chance you could add a few tests to this? something along the lines of https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/test/pleroma/web/activity_pub/mrf/ensure_re_prepended_test.exs

as for the other parts (sorry i didn't read the body)

i am unsure of how to add this to the list of "default" polices, as such it will not appear in admin-fe

luckily the MRF descriptions are dynamic - just by implementing the @behaviour it'll show up in admin-fe, so you're fine there

also you may want to add it to the docs -> https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/docs/configuration/mrf.md

as for the other parts (sorry i didn't read the body) > i am unsure of how to add this to the list of "default" polices, as such it will not appear in admin-fe luckily the MRF descriptions are dynamic - just by implementing the `@behaviour` it'll show up in admin-fe, so you're fine there also you may want to add it to the docs -> https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/docs/configuration/mrf.md
Author
First-time contributor

I will hopefully not forget this for another month!

I will hopefully not forget this for another month!
floatingghost changed title from Add unlist_undescribed_media.ex to mrf policies folder to WIP: Add unlist_undescribed_media.ex to mrf policies folder 2022-09-20 13:55:20 +00:00
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u mrf/unlisted_media:Beefox-mrf/unlisted_media
git checkout Beefox-mrf/unlisted_media
Sign in to join this conversation.
No description provided.