feed: render links in text notes
#29
Merged
offbyn
merged 2 commits from feed-reduce-many-newlines
into master
2 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'feed-reduce-many-newlines'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Links should be rendered as anchors so that they are clickable.
For now only links starting with http:// https:// or www. are supported.
part of #30
@x1ddos WDYT?
@ -157,3 +157,3 @@
const {host, img, isReply, name, replies, time, userName} = getMetadata(evt, relay);
const isLongContent = evt.content.trimRight().length > 280;
const content = isLongContent ? evt.content.slice(0, 280) : evt.content;
const content = (isLongContent ? evt.content.slice(0, 280) : evt.content).replaceAll(/\n{3,}/g, '\n\n');
maybe it should just be part of multilineText utils (which is called later in this function).
moved to multilineText from domutils
7ba31a6b92
toed49e8afa8
2 years agosounds very reasonable. lgtm.
1ef008ca90
tod9d95bb835
2 years agod9d95bb835
to8ec9420be8
2 years agofeed: reduce and censor content that has many newlinesto feed: render links in text notes 2 years ago8ec9420be8
into master 2 years agoReviewers
8ec9420be8
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.