preview AP objects as quotes - fix #595
What does this MR do?
This teaches MkUrlPreview
to use the activityPub
element returned by Summaly. If it's present, we fetch whatever it points to, and if it's a note, we show it as if it were a normal quoted note.
A note containing such a URL ends up looking like this:
A note containing the same URL, but also actually quoting the note, only shows the real quote, not the preview-quote, because we're already filtering such duplicate URLs.
Of course if a note is a quote-renote and contains a URL to another note, we'll show both:
If we decide this is a bad idea, we could do <MkUrlPreview … :showAsQuote="!appearNote.renote"
A note containing a link to an AP object that's not a note looks normal:
Contribution Guidelines
By submitting this merge request, you agree to follow our Contribution Guidelines
-
I agree to follow this project's Contribution Guidelines -
I have made sure to test this merge request
Merge request reports
Activity
requested review from @CenTdemeern1, @fEmber, @Marie, @luna, and @tess
- Resolved by Hazelnoot
Does this support multiple links in one note?
- Resolved by Hazelnoot
Does it support "web URL" stuff like Mastodon, or does it have to be an AP URL?
- Resolved by dakkar
since @puppygirlhornypost asked, I've changed the style:
first is a
MkUrlPreview
(styled like other URL previews), second is a real quoteregular preview:
embedded note preview:
added 1 commit
- 2dfadc08 - style embedded note previews like normal previews
mentioned in commit fcbf072e