\r\n\r\nCreating an issue to track this feature per @ayoayco [see this discussion](https://elk.zone/mstdn.io/@ayo@ayco.io/109767556096555675).\r\n\r\nThis is somewhat related to https://github.com/elk-zone/elk/issues/981\r\n",[2867,2870,2873],{"name":2868,"color":2869},"c: feature","2878FF",{"name":2871,"color":2872},"c: ui","8949BA",{"name":2874,"color":2875},"s: pending triage","dddddd",1504,"elk-zone","elk","open","Hide preview card if multiple links found in a single toot","2023-01-31T15:49:06Z","https://github.com/elk-zone/elk/issues/1504",0.7553222,{"description":2885,"labels":2886,"number":2887,"owner":2877,"repository":2878,"state":2879,"title":2888,"updated_at":2889,"url":2890,"score":2891},"Preview cards are a gorgeous alternative to just a barren link. They can really spiff up a post + make it visually interesting. Publishers love them because it increases the odds you'll click through to their site.\r\n\r\nHowever, when the author has taken the time + effort to choose media to display alongside their words, preview cards should NOT be displayed. Three examples:\r\n\r\n1. Thread discussing two images from one linked site. Injecting the preview card is a distraction. https://elk.zone/hachyderm.io/@pevohr/109664873250118606\r\n\r\n2. Artbot linking to works by a single artist. Injecting a preview card makes it look like the author was stuttering. https://elk.zone/mastodon.arthaus.social/@AugustMacke/109662774198259109\r\n\r\n3. Post celebrating a bit of whimsy found online. Injecting the preview card turns it into an advertisement. https://elk.zone/norden.social/@czottmann/109663886482523238\r\n\r\nIn all three cases, the author built a post that works better without the preview card. Please honor that, because we want this to be an author-centric medium (where people discuss + share things they find interesting), not a publisher-centric clicky-clicky link farm.\r\n\r\nSUGGESTED FIX\r\n\r\nOnly add preview cards for a link if there's zero attached media.",[],937,"Suppress preview card for posts with media","2023-01-30T07:48:46Z","https://github.com/elk-zone/elk/issues/937",0.77177864,{"description":2893,"labels":2894,"number":2896,"owner":2877,"repository":2878,"state":2879,"title":2897,"updated_at":2898,"url":2899,"score":2900},"When PreviewCard is detected to be a mastodon link (via powers of regex testing the author or provider or title?) we can expand the preview card in a manner similar to Twitter\n\nFrom previous discussion:\n1. don't implement a quote button\n2. aim to have expanded mastodon links",[2895],{"name":2868,"color":2869},387,"Expand mastodon links","2023-08-19T07:45:13Z","https://github.com/elk-zone/elk/issues/387",0.7780352,{"description":2902,"labels":2903,"number":2908,"owner":2877,"repository":2878,"state":2879,"title":2909,"updated_at":2910,"url":2911,"score":2912},"@antfu thinking about how to implement this with the current UI. Maybe a primary color check icon next to the link? Or just use a primary color for the link when it is verified? If we don't want to use green, I think we may need the tick\r\n\r\nhttps://mas.to/@addyosmani@indieweb.social\r\n\r\nhttps://elk.zone/@addyosmani@indieweb.social",[2904,2905],{"name":2868,"color":2869},{"name":2906,"color":2907},"p: 1-normal","BFDADC",155,"Verified website, github, twitter in header","2023-03-20T18:40:52Z","https://github.com/elk-zone/elk/issues/155",0.78522295,{"description":2914,"labels":2915,"number":2919,"owner":2877,"repository":2878,"state":2879,"title":2920,"updated_at":2921,"url":2922,"score":2923},"Not to be overly pedantic but the URL matching overshoots a bit when compared to mastodon. Specifically, in this example, mastodon would not capture the right paren `)`:\r\n```\r\nfoo (https://news.ycombinator.com/)\r\n```\r\n\r\nMastodon counts 29 characters (500 - 471):\r\n\r\n\r\nElk counts 28:\r\n\r\n\r\nThis is an issue since now it's possible to achieve a elk-safe 500 character limit and then receive a 500 character limit exceeded error by Mastodon after submitting which would confuse the user.\r\n\r\nSo somewhere down the line we might need to update this:\r\nhttps://github.com/elk-zone/elk/blob/3732a2cc16b4de6cd60f4836151d4a3292c627fa/components/publish/PublishWidget.vue#L72\r\n\r\nSince it includes the ending paren:\r\n\r\n\r\nMastodon themselves have their URL regex defined here: https://github.com/mastodon/mastodon/blob/1ed12d/app/javascript/mastodon/features/compose/util/url_regex.js (which relies on [`twitter-text`](https://github.com/twitter/twitter-text/))",[2916],{"name":2917,"color":2918},"c: bug","FFA500",1880,"Link length not properly counted in status text","2023-08-01T16:00:30Z","https://github.com/elk-zone/elk/issues/1880",0.79468364,{"description":2925,"labels":2926,"number":2928,"owner":2877,"repository":2878,"state":2929,"title":2930,"updated_at":2931,"url":2932,"score":2933},"The Status API gives a `card` prop that we can render for links: https://docs.joinmastodon.org/entities/Status/#card\r\n\r\nFor example, in this [post with a github link](https://elk.zone/fosstodon.org/@patak@mas.to/109450555194579022), we get a `card` property object with information including the image:\r\n\r\n\r\n\r\nThe example card object:\r\n\r\n```\r\n{\r\n \"url\": \"https://github.com/vitejs/vite/pull/11158\",\r\n \"title\": \"refactor: move framework plugins out of core by patak-dev · Pull Request #11158 · vitejs/vite\",\r\n \"description\": \"Description\\nBenefits of Framework plugins being out of Core\\nFoster ownership of the plugin from folks out of the Core team\\nThe framework plugins in the core monorepo doesn't help to encourage colla...\",\r\n \"type\": \"link\",\r\n \"author_name\": \"\",\r\n \"author_url\": \"\",\r\n \"provider_name\": \"GitHub\",\r\n \"provider_url\": \"\",\r\n \"html\": \"\",\r\n \"width\": 400,\r\n \"height\": 200,\r\n \"image\": \"https://cdn.fosstodon.org/cache/preview_cards/images/012/447/272/original/f226ed69b0e5ff34.png\",\r\n \"embed_url\": \"\",\r\n \"blurhash\": \"UNR:HHR-oItR%1xtR-s:R:o#adR+~padR-Ri\"\r\n}\r\n```\r\n\r\n",[2927],{"name":2868,"color":2869},335,"closed","Preview card for links on posts","2022-12-07T15:55:51Z","https://github.com/elk-zone/elk/issues/335",0.74853426,{"description":2935,"labels":2936,"number":2941,"owner":2877,"repository":2878,"state":2929,"title":2942,"updated_at":2943,"url":2944,"score":2945},"When using a screen reader the statusbar links just read as \"link\", \"link\", \"link\", \"link\" and the last link will not focus at all.\r\n\r\n\r\n\r\n\r\n",[2937,2938],{"name":2917,"color":2918},{"name":2939,"color":2940},"c: a11y","553F0B",1422,"Accessibility: Unlabeled links","2023-07-21T10:17:33Z","https://github.com/elk-zone/elk/issues/1422",0.77134395,{"description":2947,"labels":2948,"number":2950,"owner":2877,"repository":2878,"state":2929,"title":2951,"updated_at":2952,"url":2953,"score":2954},"Improve the status preview card by not stretching when we see it has a small image.\r\n\r\nMaybe add a condition for minimum width, and apply the current layout for `isSquare`\r\n\r\nExamples of a preview image that is very small:\r\n\r\nhttps://elk.zone/fosstodon.org/@isbiltur@fosstodon.org/109473584035635377\r\n\r\n\r\n\r\n\r\nhttps://elk.zone/fosstodon.org/@maggie@indieweb.social/109473442831113769\r\n\r\n\r\n\r\n",[2949],{"name":2868,"color":2869},364,"Don't stretch smaller preview card images","2022-12-16T08:22:49Z","https://github.com/elk-zone/elk/issues/364",0.77210456,{"description":2956,"labels":2957,"number":2959,"owner":2877,"repository":2878,"state":2929,"title":2960,"updated_at":2961,"url":2962,"score":2963},"Overflowing information\r\n\r\n- Sometmes when the preview card image is square, the info is overflowing on the timeline (StatusCard).\r\n- https://elk.zone/vt.social/@lina/109470892374472610\n- https://elk.zone/mastodon.social/@tjl/109473928636022003\r\n- think it's the long URL not being truncated by the text-overflow ellipsis style. Maybe a Unocss issue?\n- possibly if `isSquare` is true we can use `w-auto`\n- Also, the info needs to be vertically centered. \r\n\r\n## Screenshots\r\n",[2958],{"name":2917,"color":2918},365,"Status card preview information is overflowing","2022-12-08T14:57:53Z","https://github.com/elk-zone/elk/issues/365",0.7756884,{"description":2965,"labels":2966,"number":2968,"owner":2877,"repository":2878,"state":2929,"title":2969,"updated_at":2970,"url":2971,"score":2972},"When the status has media attachments, set the preview card to be `smallPicture`",[2967],{"name":2868,"color":2869},386,"Prioritize media attachments over preview cards","2022-12-13T18:39:53Z","https://github.com/elk-zone/elk/issues/386",0.77613616,["Reactive",2974],{},["Set"],["ShallowReactive",2977],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fGEEqPBtnIeZs9GwPZB4MC_7FVcRbWGb38l9BewIDhLw":-1},"/elk-zone/elk/981"]