Link to images in RSS output #4
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch ":rss_1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Progress towards solving #1
cc86aa1d6d
to75e80c5993
WIP: Link to images in RSS outputto Link to images in RSS outputready for review. I'll squash everything if you see it ok :)
9884edff17
to67fc816ca3
oops I messed up this... I'll try to fix it.
Edit: fixed :)
67fc816ca3
to07fdf16686
@ -41,0 +59,4 @@
abs_url = urljoin(base_url, core)
anchor = f"<a href=\"{escape(abs_url)}\">{escape(abs_url)}</a>"
words[i] = anchor + suffix
return words
This is skipping markup by the HTML parser in the following block.
Meaning, RSS feeds won't have links or code blocks rendered.
Hi, I tried to solve this but I'm not sure if I accomplished this since the example does not have code blocks. (and the output being in a single line makes it hard to compare the output of different iterations).
Also I don't know how to use the html parser and the function that truncates the description at the same time. Let me know if this is ok, or if you prefer to truncate it for RSS output...
Could you scrap the
is_atom
logic inenrich_msg()
?Just let
enrich_mesg
operate independently of the export feed format.Add:
Please don't define a separate HTML parser just for RSS feeds. The function only needs one.
Add 2:
If you open the feed in a web browser, the output might be more readable than if you opened in a text editor.
Hey, I can see the image render as links on certain posts.
RE:
enrich_msg()
You added another block with its own "for each word" loop and
return
.Could you work with the pre-existing "for each word" loop (the one that is getting skipped over).
Additionally, the link is incorrect for generated galleries like:
https://likho.neocities.org/microblog/tags/test/#40
str
vg-demo1.jpg
becomeshttps://likho.neocities.org/microblog/vg-demo.jpg
(404) in the feed(This is related to
[post.gallery]
in settlings.toml.)68a5b2be65
to7ab7b06bb2
Could you do a new review?
Thanks, looking at it on the browser makes it easier, and things like
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
look different, which confused me a bit.It looks good to go.
I'll be sending your payment plus the bonus to your public address (
8M5cnyAzRyxZYghZayTcedek2Lgk3HqAZPvtzXMWm6va:4LA
) at 7 pm UTC.I typically would give any time between now and then to let someone spot any mistakes in copying the address. It looks like that key is active, so any funds wouldn't be sent to the void regardless. (If you want it now, I can send it now.)
Thanks! :)