Suggestion: additional prefix/suffix if tag exists #69

Closed
opened 2025-12-05 09:37:20 +00:00 by Sebastian_Berlin · 2 comments
Sebastian_Berlin commented 2025-12-05 09:37:20 +00:00 (Migrated from codeberg.org)

The <author> or <dc:creator> tag isn't often filled in the feeds, some publishers use it consistently, some never, but if the tag is available, it's good and fair to mention the person behind the article, I think.

For one feed I use this syntax:

DESCRIPTION [PUBLISHER / by AUTHOR]
BLANKLINE
LINK
BLANKLINE
CUSTOMHASHTAGS

That looks good in situations, where an author tag exists. But if not, the syntax is kind of broken and it would be [New York Times / by ]. It's not the end of the world, but it doesn't look good.

I guess other tags (like {updated} or custom tags) would also benefit from my suggestion: Maybe a custom prefix and suffix would be great to add to a variable. Something like {[Title: ]title} or {[ / by]author}, so with [square brackets] IF the tag is available (or with a similar structure that will work).

The `<author>` or `<dc:creator>` tag isn't often filled in the feeds, some publishers use it consistently, some never, but if the tag is available, it's good and fair to mention the person behind the article, I think. For one feed I use this syntax: ``` DESCRIPTION [PUBLISHER / by AUTHOR] BLANKLINE LINK BLANKLINE CUSTOMHASHTAGS ``` That looks good in situations, where an author tag exists. But if not, the syntax is kind of broken and it would be `[New York Times / by ]`. It's not the end of the world, but it doesn't look good. I guess other tags (like `{updated}` or [custom tags](https://codeberg.org/marvinsmastodontools/feed2fedi/issues/64)) would also benefit from my suggestion: Maybe a **custom prefix and suffix** would be great to add to a variable. Something like `{[Title: ]title}` or `{[ / by]author}`, so with [square brackets] IF the tag is available (or with a similar structure that will work).
marvin8 commented 2025-12-17 22:37:38 +00:00 (Migrated from codeberg.org)

I'll have to look into this in more detail. Maybe in the new year.

I'll have to look into this in more detail. Maybe in the new year.
marvin8 commented 2026-02-14 05:51:45 +00:00 (Migrated from codeberg.org)

Now implemented in release 3.5.0

Now implemented in release 3.5.0
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/feed2fedi#69
No description provided.