filters for feeds #18

Closed
MrClon wants to merge 0 commits from feed_filters into wip
MrClon commented 2023-12-24 17:54:30 +00:00 (Migrated from codeberg.org)

Add filters that allow apply some actions to some items in feeds. Now supported drop (do not post this item), search-replace (apply re.sub to item text) and mark_cw (add content warning). Actions can be applied to posts that match some regex, or to any post.

I'am not happy with this code quality, but i have not time to rewrite it

Add filters that allow apply some actions to some items in feeds. Now supported `drop` (do not post this item), `search-replace` (apply `re.sub` to item text) and `mark_cw` (add content warning). Actions can be applied to posts that match some `regex`, or to `any` post. I'am not happy with this code quality, but i have not time to rewrite it
marvin8 commented 2023-12-28 20:40:15 +00:00 (Migrated from codeberg.org)

Great idea... thanks for the PR.

Can you address the issues found in the checks pipeline, please.

Great idea... thanks for the PR. Can you address the issues found in the [checks pipeline](https://ci.codeberg.org/repos/12829/pipeline/18/5), please.
MrClon commented 2023-12-31 09:01:20 +00:00 (Migrated from codeberg.org)

I have to idea how to fix src/feed2fedi/control.py:91: error: No overload variant of "field" matches argument type "list[ItemsFilter]" [call-overload]

I have to idea how to fix `src/feed2fedi/control.py:91: error: No overload variant of "field" matches argument type "list[ItemsFilter]" [call-overload]`
marvin8 commented 2023-12-31 22:50:56 +00:00 (Migrated from codeberg.org)

Ok... leave it with me for now... I'll see if I can work it out. Might be a couple of days though ;-)

Ok... leave it with me for now... I'll see if I can work it out. Might be a couple of days though ;-)
marvin8 commented 2024-01-01 04:42:30 +00:00 (Migrated from codeberg.org)

Replacing this PR with PR #19

Replacing this PR with PR #19
marvin8 commented 2024-01-17 05:00:01 +00:00 (Migrated from codeberg.org)

Addressed in release 2.0.0

Addressed in release 2.0.0

Pull request closed

Sign in to join this conversation.
No description provided.