(#xxu5i3a) @eapl.me@eapl.me@eapl.me@eapl.me Yeah yarnd already filters/ignores them (for now)
@eapl.me @eapl.me @eapl.me @eapl.me Yeah yarnd already filters/ignores them ( for now) â Read more
(#xxu5i3a) @andros@andros This is cool! đ Migut just have to add support for this to see how it might work in yarnd đ¤Ł
@andros @twtxt.andros.dev This is cool! đ Migut just have to add support for this to see how it might work in yarnd 𤣠â Read more
@kat@yarn.girlonthemoon.xyz Itâs there, but yarndâs markdown library probably thinks that itâs some broken HTML and swallows it, not sure.
@eapl.me@eapl.me@eapl.me@eapl.me I replied in the fork, but essentially thereâs no reason we canât support two different models here. We already do this anyway with numerous single-user, single hosted and managed feeds + a bunch of multi-user yarnd pods that form a âdistributed networkâ.
(#j3xacqa) @eapl.me@eapl.me@eapl.me@eapl.me I think the general idea that weâre settling on here is that maybe we can build a simple solution âŚ
@eapl.me @eapl.me @eapl.me @eapl.me I think the general idea that weâre settling on here is that maybe we can build a simple solution to this whole âwtf is this hash?â problem. yarnd already forms a sort-of âdistributed networkâ amongst its pe ⌠â Read more
(#ep5rg4q) @andros@andros Would it help if I documented the two protocols that yarnd uses today for this âdistributed networkâ? đ§
@andros @twtxt.andros.dev Would it help if I documented the two protocols that yarnd uses today for this âdistributed networkâ? đ§ â Read more
(#ep5rg4q) @andros@andros this is actually already achieved with yarnd
@andros @twtxt.andros.dev this is actually already achieved with yarnd â Read more
i rebuilt the yarnd binary several times and yet the version print is still omitting the first letter lol? wtf
@prologic@twtxt.net We canât agree on this idea because that makes things even more complicated than it already is today. The beauty of twtxt is, you put one file on your server, done. One. Not five million. Granted, there might be archive feeds, so it might be already a bit more, but still faaaaaaar less than one file per message.
Also, you would need to host not your own hash files, but everybody elseâs as well you follow. Otherwise, what is that supposed to achieve? If people are already following my feed, they know what hashes I have, so this is to no use of them (unless they want to look up a message from an archive feed and donât process them). But the far more common scenario is that an unknown hash originates from a feed that they have not subscribed to.
Additionally, yarndâs URL schema would then also break, because https://twtxt.net/twt/<hash> now becomes https://twtxt.net/user/prologic/<hash>, https://twtxt.net/user/bender/<hash> and so on. To me, that looks like you would only get hashes if they belonged to this particular user. Of course, you could define rules that if there is a /user/ part in the path, then use a different URL, but this complicates things even more.
Sorry, I donât like that idea.
One of the biggest gripes of the community with the way the threading model currently works with Twtxt v1.2 (https://twtxt.dev) is this notion of:
What is this hash?
What does it refer to?
Idea: Why canât we all agree to implement a simple URI scheme where we host our Twtxt feeds?
That is, if you host your feed at https://example.com/twtxt.txt â Why canât or could you not also host various JSON files (letâs agree on the spec of course) at https://example.com/twt/<hash> ? đ¤
That way we solve this problem in a truly decentralised way, rather than every relying on yarnd pods alone.
For point 1 and others using the metadata tags. we have implemented them in yarnd as [lang=en][meta=data]
For point 1 and others using the metadata tags. we have implemented them in yarnd as [lang=en][meta=data]
(#dvxmcwa) @bender@bender Ahh I noticed that too! Not yarnd making this happen đ
@bender @twtxt.net Ahh I noticed that too! Not yarnd making this happen đ â Read more
(#dvxmcwa) @bender@bender What happened here with yarnd?
@bender @twtxt.net What happened here with yarnd? â Read more
(#vnr6wza) @xuu@xuu Letâs add it in and weâll amend yarnd to partially (for now) implement the DM ext.
@xuu @txt.sour.is Letâs add it in and weâll amend yarnd to partially (for now) implement the DM ext. â Read more
@prologic@twtxt.net All the URL are missing the protocol part (https://) and my markdown parser does not know how to handle but I see yarnd does it just fine.
@prologic@twtxt.net Of course you donât notice it when yarnd only shows at most the last n messages of a feed. As an example, check out mckinleyâs message from 2023-01-09T22:42:37Z. It has â[Scheduled][Scheduled][Scheduled]â⌠in it. This text in square brackets is repeated numerous times. If you search his feed for closing square bracket followed by an opening square bracket (][) you will find a bunch more of these. It goes without question he never typed that in his feed. My client saves each twt hash Iâve explicitly marked read. A few days ago, I got plenty of apparently years old, yet suddenly unread messages. Each and every single one of them containing this repeated bracketed text thing. The only conclusion is that something messed up the feed again.
(#h52tetq) @lyse@lyse @andros@andros Are we talking about yarnd here? Hmm? đ¤ Iâve thought about a âread flagâ but I âŚ
@lyse @lyse.isobeef.org @andros @twtxt.andros.dev Are we talking about yarnd here? Hmm? đ¤ Iâve thought about a âread flagâ but I just havenât bothered so far⌠â Read more
@<url>. Submitting this writes @<domain url> instead of @<nick url> in the feed.
While I now have a somewhat working fix for it in yarnd (https://git.mills.io/yarnsocial/yarn/pulls/1232), I also have the feeling that I should fix literal formatting in lextwt as well. This also uncovered more bugs I believe: https://git.mills.io/yarnsocial/go-lextwt/pulls/28
But then there is also the question why the textarea is populated with @<url> in the first place rather than @<nick url> or yarndâs own @nick@domain/@nick syntax. It indeed has to do something with whether I follow the mentioned feed or not.
Anyway, something to investigate for future Lyse or maybe @prologic@twtxt.net and/or @xuu@txt.sour.is. Gânight!
(#62ohn5q) @arne@arne I do đ
Despite some opinions, I actually love HTMX and use it in many of my projects, including yarnd to giv âŚ
@arne @uplegger.eu I do đ
Despite some opinions, I actually love HTMX and use it in many of my projects, including yarnd to give it that nice SPA-like UX feel without all this Javascript React nonsense đ
â Read more
(#4scqtqa) @doesnm@doesnm I donât think this has anything to do with yarnd, but SSH keys in general đ
@doesnm @doesnm.p.psf.lt I donât think this has anything to do with yarnd, but SSH keys in general đ
â Read more
Yarnd can store password-protected keys without risk because pod owner donât have password, but looks like i/someone should enter password for every message sent or receive? Upd: oh, itâs about ssh? i have key without password lol
(#u2ycerq) @kat It most certainly was us fucking around đ¤Łđ¤Ł Turns out to be a side-effect of the way the Twt Subject extension is impleme âŚ
@kat @yarn.girlonthemoon.xyz It most certainly was us fucking around đ¤Łđ¤Ł Turns out to be a side-effect of the way the Twt Subject extension is implemented in yarnd and now apparently jenny đ¤Łđ¤Ł Where it strips out the subject from the displayed/rendered content. Which is what you want⌠But oh well hah ⌠â Read more
(#nntyksa) @kat The twtxt files for yarnd are stored under /path/to/data under the feeds directory. Oner per user.
@kat @yarn.girlonthemoon.xyz The twtxt files for yarnd are stored under /path/to/data under the feeds directory. Oner per user. â Read more
Hmm, I just noticed that the feed template seems to be broken on your yarnd instance, @kat@yarn.girlonthemoon.xyz. Looking at your raw feed file (and your mates as well), line 6 reads:
# This is hosted by a Yarn.social pod yarn running yarnd ERSION@OMMIT go1.23.4
^^^^^^^^^^^^
Looks like the first letters of the version and commit got somehow chopped off. Iâve no idea what happened here, maybe @prologic@twtxt.net knows something. :-? Iâm not familiar with the templating, I just recall @xuu@txt.sour.is reporting in IRC the other day that heâs also having great fun with his custom preamble from time to time.
That âbrokenâ comment doesnât hurt anything, itâs still a proper comment and hence ignored by clients. Itâs just odd, thatâs all.
@<url> form of mentions. Strictly require that all mentions include a nickname/name; i.e: @<name url>.
For the record; we consider the new authority on the Twtxt spec(s) going forward (has been for some years actually) to be implementers / primary maintainers of widely used clients. To date that is:
yarnd@prologic@twtxt.net (me and others)
jenny@movq@www.uninformativ.de
tt@lyse@lyse.isobeef.org
Timeline@darch@neotxt.dk / @eapl.me@eapl.me and others
twtxt-el? â @andros@twtxt.andros.dev
Full list of supported and widely used clients can be found at https://twtxt.dev/clients.html â which I note a few above are actually missing from this page haha đ¤Ł
(#ot56hla) For the record; we consider the new authority on the Twtxt spec(s) going forward (has been for some years actually) to be implement âŚ
For the record; we consider the new authority on the Twtxt spec(s) going forward ( has been for some years actually) to be implementers / primary maintainers of widely used clients. To date that is:
yarnd@prologic (me and others)jenny[@movq @www.uninformativ.de](https://twtxt.net/external?uri=https://www.uninformativ.de/twtxt.txt&nick=movq ⌠â Read more
(#gwxefpq) text: @kat Btw, as a new pod operator, please do let me know how I can improve yarnd at all đ
text: @kat @yarn.girlonthemoon.xyz Btw, as a new pod operator, please do let me know how I can improve yarnd at all đ â Read more
Hey this could be good news for self-hosters and folks that want to run their own yarnd? đ¤ Vultr is offering 1 vCPU, 500MB Memory and 10GB Storage for FREE! Thatâs right $0.00 𤣠
Hey this could be good news for self-hosters and folks that want to run their own yarnd? đ¤ Vultr is offering 1 vCPU, 500MB Memory and 10GB âŚ
Hey this could be good news for self-hosters and folks that want to run their own yarnd? đ¤ Vultr is offering 1 vCPU, 500MB Memory and 10GB Storage for FREE! Thatâs right $0.00 đ¤Ł
â Read more
(#boohdlq) Also yarnd supports video too đ¤Ł
Also yarnd supports video too 𤣠â Read more
(#fvudyva) @doesnm No, itâs only designed for yarnd. What did you have in mind here? đ¤
@doesnm @doesnm.p.psf.lt No, itâs only designed for yarnd. What did you have in mind here? đ¤ â Read more
(#7pqsr4q) @kat yarnd actually stores your feed in plain text on disk too đ¤Ł
@kat @yarn.girlonthemoon.xyz yarnd actually stores your feed in plain text on disk too 𤣠â Read more
@andros@twtxt.andros.dev What do you mean by API? yarnd (which powers Yarn.social pods like twtxt.net) does have an API, however that API is designed for clients to interact with the pod and the userâs account and feed. e.g: there is a command-line client called yarnc and I used to maintain a mobile native app (using Flutter).
What use-case did you have in mind?
(#gjl3gwq) @andros What do you mean by API? yarnd (which powers Yarn.social pods like twtxt.net) does have an API, however that API is desig âŚ
@andros @twtxt.andros.dev What do you mean by API? yarnd ( which powers Yarn.social pods like twtxt.net) does have an API, however that API is designed for clients to interact with the pod and the userâs account and feed. e.g: there is a command-line client called yarnc and I used to maintain a mobile native app ( ⌠â Read more
(#v3q6xuq) @lyse I wouldnât know sadly. I donât pay attention to the actual clients themselves as you know. I just let yarnd do itâs thing.
@lyse @lyse.isobeef.org I wouldnât know sadly. I donât pay attention to the actual clients themselves as you know. I just let yarnd do itâs thing. â Read more
Are we talking about profile view heading, heading of posts or inline mentions?
In yarnd I recall there is a setting for changing the heading of posts, but not for the two others as of yet.
I like the hover option for inline mentions. For the other places some like how yarnd does it in two line or â nick (domain.tld) â could also work.
@prologic@twtxt.net Well I just mirrored yarndâs JSON in my webfinger endpoint and lookup, so not much else to do for standardization.
And for people who donât like PHP you can always just go with Added WebFinger support to my email address using one rewrite rule and one static file. or simply putting a static JSON in place for .well-know/webfinger
I like the cleaness and indiewebness of using just domains for handles/shorthands similar to blusky, but the situations with more users on the same domain and that people in the fediverse (threads too?) are already familiar with the syntax speaks for webfinger. And since we already got support for webfinger in both yarnd and timeline it makes sense to stick with it.
**(#ptp2n7a) > Why is my @ mention is all over the place?
Just the way yarnd (my client) behaves, which Iâm also refactoring and improving the âŚ**
Why is my @ mention is all over the place?
Just the way yarnd (my client) behaves, which Iâm also refactoring and improving the way mentions are expanded and auto-completed. â Read more
(#vqpo6ba) LOL I did! Haha đ yarnd drops future twts on the floor!
LOL I did! Haha đ yarnd drops future twts on the floor! â Read more
(#ygie36q) @movq BahahHhHg đ¤Łđ¤Łđ¤Ł So glad I fixed that possibility years ago in yarnd đ
@movq @www.uninformativ.de BahahHhHg đ¤Łđ¤Łđ¤Ł So glad I fixed that possibility years ago in yarnd đ
â Read more
(#nzydkda) yarnd automatically rotates at the configured maximum fetch size.
yarnd automatically rotates at the configured maximum fetch size. â Read more
(#ewcgw4a) @xuu I think my backend stalled and I somehow managed to post in the past 𤣠For some reason Iâm noticing more performance proble âŚ
@xuu @txt.sour.is I think my backend stalled and I somehow managed to post in the past 𤣠For some reason Iâm noticing more performance problems with yarnd of late. Need to look into them⌠â Read more
Righto, @eapl.me@eapl.me, ta for the writeup. Here we go. :-)
Metadata on individual twts are too much for me. I do like the simplicity of the current spec. But I understand where youâre coming from.
Numbering twts in a feed is basically the attempt of generating message IDs. Itâs an interesting idea, but I reckon it is not even needed. Iâd simply use location based addressing (feed URL + â#â + timestamp) instead of content addressing. If one really wanted to, one could hash the feed URL and timestamp, but the raw form would actually improve disoverability and would not even require a richer client. But the majority of twtxt users in the last poll wanted to stick with content addressing.
yarnd actually sends If-Modified-Since request headers. Not only can I observe heaps of 304 responses for yarnds in my access log, but in Cache.FetchFeeds(âŚ) we can actually see If-Modified-Since being deployed when the feed has been retrieved with a Last-Modified response header before: https://git.mills.io/yarnsocial/yarn/src/commit/98eee5124ae425deb825fb5f8788a0773ec5bdd0/internal/cache.go#L1278
Turns out etags with If-None-Match are only supported when yarnd serves avatars (https://git.mills.io/yarnsocial/yarn/src/commit/98eee5124ae425deb825fb5f8788a0773ec5bdd0/internal/handlers.go#L158) and media uploads (https://git.mills.io/yarnsocial/yarn/src/commit/98eee5124ae425deb825fb5f8788a0773ec5bdd0/internal/media_handlers.go#L71). However, it ignores possible etags when fetching feeds.
I donât understand how the discovery URLs should work to replace the User-Agent header in HTTP(S) requests. Do you mind to elaborate?
Different protocols are basically just a client thing.
I reckon itâs best to just avoid mixing several languages in one feed in the first place. Personally, I find it okay to occasionally write messages in other languages, but if that happens on a more regularly basis, Iâd definitely create a different feed for other languages.
Isnât the emoji thing âjustâ a client feature? So, feed do not even have to state any emojis. As a user Iâd configure my client to use a certain symbol for feed ABC. Currently, I can do a similar thing in tt where I assign colors to feeds. On the other hand, what if a user wants to control what symbol should be displayed, similar to the feedâs nick? Hmm. But still, my terminal font doesnât even render most of emojis. So, Unicode boxes everywhere. This makes me think it should actually be a only client feature.
(#b6juizq) @Codebuzz It currently takes my yarnd pod here around ~2m on average to fetch, process and cache ~700 feeds.
@Codebuzz @www.codebuzz.nl It currently takes my yarnd pod here around ~2m on average to fetch, process and cache ~700 feeds. â Read more
(#gctrz4q) > Alternatively, if you prefer yarnd to pretty-print all twts nicely, even ones from simpler clients, thatâs fine too and you don�� âŚ
Alternatively, if you prefer yarnd to pretty-print all twts nicely, even ones from simpler clients, thatâs fine too and you donât need to change anything. My Âź -> Âź thing is nothing more than a minor irritation which probably isnât worth overthinking.
Yeah Iâve closed the PR, I just wanted to write it up and see what we all thought. Much easier to talk to a concrete spec proposal sometimes. ⌠â Read more
(#gctrz4q) > Whatâs wrong with my original suggestion of doing the transformation before the text hits the twtxt.txt file? @prologic, I think âŚ
Whatâs wrong with my original suggestion of doing the transformation before the text hits the twtxt.txt file? @prologic, I think it would achieve what you are trying to achieve with this content-type thing: if someone writes Âź on a yarnd instance or any other client that wants to do this, it would get transformed, and other clients simply wouldnât do the transformation. Every client that sup ⌠â Read more
**(#gctrz4q) @falsifian Only that this rendering behavior comes from yarndâs Markdown parser library that is used:
What has text/markdown go âŚ**
@falsifian @www.falsifian.org Only that this rendering behavior comes fromyarndâs Markdown parser library that is used:What has text/markdown got to do with this? I donât think Markdown says anything about replacing Âź with Âź, or other similar transformations. Itâs not needed, because Âź is already a ⌠â Read more
@bender@twtxt.net @prologic@twtxt.net Iâm not exactly asking yarnd to change. If you are okay with the way it displayed my twts, then by all means, leave it as is. I hope you wonât mind if I continue to write things like 1/4 to mean âfirst out of fourâ.
What has text/markdown got to do with this? I donât think Markdown says anything about replacing 1/4 with Âź, or other similar transformations. Itâs not needed, because Âź is already a unicode character that can simply be directly inserted into the text file.
Whatâs wrong with my original suggestion of doing the transformation before the text hits the twtxt.txt file? @prologic@twtxt.net, I think it would achieve what you are trying to achieve with this content-type thing: if someone writes 1/4 on a yarnd instance or any other client that wants to do this, it would get transformed, and other clients simply wouldnât do the transformation. Every client that supports displaying unicode characters, including Jenny, would then display Âź as Âź.
Alternatively, if you prefer yarnd to pretty-print all twts nicely, even ones from simpler clients, thatâs fine too and you donât need to change anything. My 1/4 -> Âź thing is nothing more than a minor irritation which probably isnât worth overthinking.
(#s7t3gya) @bender@bender The only changes I can foresee are really to yarnd. As no other client Iâm aware of really cares aall that much. âŚ
@bender The only changes I can foresee are really to yarnd. As no other client Iâm aware of really cares aall that much. 𤣠Itâs only in an attempt to solve this. No Iâm not sure about this 𤣠â Read more
@prologic@twtxt.net Iâm not a yarnd user, so it doesnât matter a whole lot to me, but FWIW Iâm not especially keen on changing how I format my twts to work around yarndâs quirks.
I wonder if this kind of postprocessing would fit better between composing (via yarndâs UI) and publishing. So, if a yarnd user types Âź, it could get changed to Âź in the twtxt.txt file for everyone to see, not just people reading through yarnd. But when I type Âź, meaning first out of four, as a non-yarnd user, the meaning wouldnât get corrupted. I can always type Âź directly if thatâs what I really intend.
(This twt might be easier to understand if you read it without any transformations :-P)
Anyway, again, Iâm not a yarnd user, so do what you will, just know you might not be seeing exactly what I meant.
(#rjapt4a) @bender@bender @movq AFAICT this isnât a bug with yarnd, but a. bug with the feed itself. The feed is now completely broken in t âŚ
@bender @movq @www.uninformativ.de AFAICT this isnât a bug with yarnd, but a. bug with the feed itself. The feed is now completely broken in that regard. See #27nifeq â Read more
I think it could be yarndâs avatar caching. Thatâs why my avatar field has a #20240102 at the end: To trick yarnd into reloading it.
yarnd supports the use of WebMentions, it's very rarely used in practise (if ever) -- In fact I should just drop the feature entirely.
(#2024-09-24T12:34:31Z) WebMentions does would work if we agreed to implement it correctly. I never figured out how yarndâs WebMentions work, so I decide to make my own, which Iâm the only one usingâŚ
I had a look at WebSub, witch looks way more complex than WebMentions, and seem to need a lot more overhead. We donât need near realtime. We just need a way to notify someone that someone they donât know about mentioned or replied to their post.
There is also a ~5x increase cost in memory utilization for any implementations or implementors that use or wish to use in-memory storage (yarnd does for example) and equally a 5x increase in on-disk storage as well. This is based on the Twt Hash going from a 13 bytes (content-addressing) to 63 bytes (on average for location-based addressing). There is roughly a ~20-150% increase in the size of individual feeds as well that needs to be taken into consideration (on the average case).
@sorenpeter@darch.dk Points 2 & 3 arenât really applicable here in the discussion of the threading model really Iâm afraid. WebMentions is completely orthogonal to the discussion. Further, no-one that uses Twtxt really uses WebMentions, whilst yarnd supports the use of WebMentions, itâs very rarely used in practise (if ever) â In fact I should just drop the feature entirely.
The use of WebSub OTOH is far more useful and is used by every single yarnd pod everywhere (no that thereâs that many around these days) to subscribe to feed updates in ~near real-time without having the poll constantly.
@aelaraji@aelaraji.com This is one of the reasons why yarnd has a couple of settings with some sensible/sane defaults:
I could already imagine a couple of extreme cases where, somewhere, in this peaceful world oneâs exercise of freedom of speech could get them in Real trouble (if not danger) if found out, it wouldnât necessarily have to involve something to do with Law or legal authorities. So, If someone asks, and maybe fearing fearing for⌠letâs just say âTheir well beingâ, would it heart if a pod just purged their content if itâs serving it publicly (maybe relay the info to other pods) and call it a day? It doesnât have to be about some law/convention somewhere ⌠𤡠I know! Too extreme, but Iâve seen news of people whoâd gone to jail or got their lives ruined for as little as a silly joke. And it doesnât even have to be about any of this.
There are two settings:
$ ./yarnd --help 2>&1 | grep max-cache
--max-cache-fetchers int set maximum numnber of fetchers to use for feed cache updates (default 10)
-I, --max-cache-items int maximum cache items (per feed source) of cached twts in memory (default 150)
-C, --max-cache-ttl duration maximum cache ttl (time-to-live) of cached twts in memory (default 336h0m0s)
So yarnd pods by default are designed to only keep Twts around publicly visible on either the anonymous Frontpage or Discover View or your Timeline or the feedâs Timeline for up to 2 weeks with a maximum of 150 items, whichever get exceeded first. Any Twts over this are considered âoldâ and drop off the active cache.
Itâs a feature that my old man @off_grid_living@twtxt.net was very strongly in support of, as was I back in the day of yarndâs design (nothing particularly to do with Twtxt per se) that Iâve to this day stuck by â Even though there are some đ that have different views on this đ¤Ł
@prologic@twtxt.net Do you have a link to some past discussion?
Would the GDPR would apply to a one-person client like jenny? I seriously hope not. If someone asks me to delete an email they sent me, I donât think I have to honour that request, no matter how European they are.
I am really bothered by the idea that someone could force me to delete my private, personal record of my interactions with them. Would I have to delete my journal entries about them too if they asked?
Maybe a public-facing client like yarnd needs to consider this, but that also bothers me. I was actually thinking about making an Internet Archive style twtxt archiver, letting you explore past twts, including long-dead feeds, see edit histories, deleted twts, etc.
Can I get someone like maybe @xuu@txt.sour.is or @abucci@anthony.buc.ci or even @eldersnake@we.loveprivacy.club â If you have some spare time â to test this yarnd PR that upgrades the Bitcask dependency for its internal database to v2? đ
VERY IMPORTANT If you do; Please Please Please backup your yarn.db database first! đ
Heaven knows I donât want to be responsible for fucking up a production database here or there đ¤Ł
jenny nor yarnd support it very well. Only at a very basic level.
@prologic@twtxt.net sorry but nope. Neither jenny, nor yarnd supports it at all. This was treated as a thread because I picked one of @falsifian@www.falsifian.orgâs twtxts (with the âold subjectâ), and replied to it (hence starting the thread).
So yeah no, whilst it technically works, neither jenny nor yarnd support it very well. Only at a very basic level.
yarnd (at least) doesn't support creating such a custom TwtSubject, but it will reply and respect and thread one if one was constructed.
@prologic@twtxt.net based on @falsifian@www.falsifian.orgâs findings, I donât believe this is quite accurate.
âyarnd
(_at least_) doesn't support creating such a custom TwtSubject, but it will reply and respect and thread one if one was constructed."
Hmm, but yarnd also isnât showing these twts as being part of a thread. @prologic@twtxt.net you said yarnd respects customs subjects. Shouldnât these twts count as having a custom subject, and get threaded together?
yarnd just doesnât render the subject. Fair enough. Itâs (replyto http://darch.dk/twtxt.txt 2024-09-15T12:50:17Z), and if you donât want to go on a hunt, the twt hash is weadxga: https://twtxt.net/twt/weadxga
Just that yarnd (at least) doesnât support creating such a custom TwtSubject, but it will reply and respect and thread one if one was constructed.
@prologic@twtxt.net Specifically, I could view yarndâs copy here, but only as rendered for a human to view: https://twtxt.net/twt/st3wsda
@movq@www.uninformativ.de thanks for getting to the bottom of it. @prologic@twtxt.net is there a way to view yarndâs copy of the raw twt? The edit didnât result in a visible change; being able to see what yarnd originally downloaded would have helped me debug.
@prologic@twtxt.net One of your twts begins with (#st3wsda): https://twtxt.net/twt/bot5z4q
Based on the twtxt.net web UI, it seems to be in reply to a twt by @cuaxolotl@sunshinegardens.org which begins âIâve been sketching outâŚâ.
But jenny thinks the hash of that twt is 6mdqxrq. At least, thereâs a very twt in their feed with that hash that has the same text as appears on yarn.social (except with â instead of â).
Based on this, it appears jenny and yarnd disagree about the hash of the twt, or perhaps the twt was edited (though I canât see any difference, assuming â vs â is just a rendering choice).
@prologic@twtxt.net I believe you when you say registries as designed today do not crawl. But when I first read the spec, it conjured in my mind a search engine. Now I donât know how things work out in practice, but just based on reading, I donât see why it canât be an API for a crawling search engine. (In fact I donât see anything in the spec indicating registry servers shouldnât crawl.)
(I also noticed that https://twtxt.readthedocs.io/en/latest/user/registry.html recommends âThe registries should sync each others user list by using the users endpointâ. If I understood that right, registering with one should be enough to appear on others, even if they donât crawl.)
Does yarnd provide an API for finding twts? Is it similar?
@abucci@anthony.buc.ci Thank you for using Lyseâs Unofficial Yarnd Help Desk:
There is a bug in yarnd thatâs been around for awhile and is still present in the current version Iâm running that lets a person hit a constructed URL like
YOUR_POD/external?nick=lovetocode999&uri=https://socialmphl.com/story19510368/doujin
and see a legitimate-looking page on YOUR_POD, with an HTTP code 200 (success). From that fake page you can even follow an external feed. Try it yourself, replacing âYOUR_PODâ with the URL of any yarnd pod you know. Try following the feed.
I think URLs like this should return errors. They should not render HTML, nor produce legitimate-looking pages. This mechanism is ripe for DDoS attacks. My pod gets roughly 70,000 hits per day to URLs like this. Many are porn or other types of content I do not want. At this point, if itâs not fixed soon I am going to have to shut down my pod. @prologic@twtxt.net please have a look.
@prologic@twtxt.net Yes, fetching the twt by hash from some service could be a good alternative, in case the twt I have does not @-mention the source. (Besides yarnd, maybe this should be part of the registry API? I donât see fetch-by-hash in the registry API docs.)
@bender@twtxt.net Iâm not a yarnd user, but automatically unfollowing on 404 doesnât seem right. Besides @lyse@lyse.isobeef.orgâs example, I could imagine just accidentally renaming my own twtxt file, or forgetting to push it when I point my DNS to a new web server. Iâd rather not lose all my yarnd followers in a situation like that (and hopefully they feel the same).
@prologic@twtxt.net I got it working, I reinstalled go under home (instead of where go wiki tells me to install it), and pointed to that, as well as the variables you mentioned, that enabled me to compile it. deleted the old yarnd , and made sure I run the new one.
Thanks for the help (as always :) ).
@prologic@twtxt.net Ok, good to know. So the issue is the same âavatar in tmpâ issue filling up the disk. I did not check the dates on the avatars there, but it worked fined earlier yesterday, and was full today, so it seems to be the same issue mentioned earlier on here. Iâll keep an eye on it. I have not updated yarnd for a while, so I run v 0.15.1.
@prologic@twtxt.net hm, okay, not sure what to do with it though. If I remember correct - Iâve just forwarded the subdomain to yarndâs port - and thatâs it.
This is the config:
`server {
server_name yarn.stigatle.no;
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8000;
proxy_redirect off;
}`
@prologic@twtxt.net hey testing a rebuild of yarnd
@prologic@twtxt.net hey testing a rebuild of yarnd
By the way, @xuu@txt.sour.is, it looks like youâre running an old, buggy version of yarnd, that duplicates twts in the feed on edit.
HmmâŚ
Jun 19 23:31:38 yarn_init.sh[61567]: [yarnd] 2024/06/19 23:31:38 (127.0.0.1:40254) âPOST /post HTTP/
1.0â 200 0 3.402208ms
[âŚ]Jun 19 23:31:39 yarn_init.sh[61567]: [yarnd] 2024/06/19 23:31:39 (127.0.0.1:40262) âGET /post HTTP/1.0â 404 729 123.474001ms
I just âpublishedâ a #draft on my blog about âHow Iâve implemented #webmentions for twtxtâ (http://darch.dk/mentions-twtxt), so I wanted to know from you guys if you see yourself doing a similar thing with yarnd @prologic@twtxt.net or others with custom setups?
It not that easy @xuu@txt.sour.is since I implemented webmentions in a different way that how it have been done in yarnd to work with txt-files. You can find the code in webmention_endpoint.php and new_twt.php at main ¡ sorenpeter/timeline
Also made a webfinger lookup resolver that works with my own webfinger endpoint as well as yarnd servers:
http://darch.dk/wf-lookup.php
yarnd does not do auto discovery via webfinger though.. i cant put @username and have it fetch the feed url from webfinger. to fully make feeds portable. would also need to be able to use that for hashing.
yarnd does not do auto discovery via webfinger though.. i cant put @username and have it fetch the feed url from webfinger. to fully make feeds portable. would also need to be able to use that for hashing.
> ?
Iâm also more in favor of #reposts being human readable and writable. A client might implement a bottom that posts something simple like: #repost Look at this cool stuff, because bla bla [alt](url)
This will then make it possible to also ârepostâ stuff from other platforms/protocols.
The reader part of a client, can then render a preview of the link, which we talked about would be a nice (optional) feature to have in yarnd.
@prologic@twtxt.net
Yarnd exposes it for the users to view logs for there own feed?
@lyse@lyse.isobeef.org Iâm also on the e-mail wagon here. On http://darch.dk/timeline/conv/oe3howa I have added a âComment via emailâ botten if uses are not logged in. This feature could be extend to other places in the various UIs. Like we already got the âDoes not follow yourâ / âFollow youâ on the profile page in yarnd, so this detection could be used to sugget the user to email that person, when mentioning them.
So who currently is running main or edge of Yarn.socialâs yarnd on their pod and has activitypub and webfinger enabled? đ¤
@prologic@twtxt.net I start my yarnd through command line, is there a way to enable the activitypub that way? or do I need to do it some other way? (I compiled the latest source)
@stigatle@yarn.stigatle.no The reason I was thinking about a separate binary / project / service is to bring along our Twtxt friends like @movq@www.uninformativ.de and @lyse@lyse.isobeef.org and anyone else that self-hosted their Twtxt feed on their own. But this of course has added complexities like spinning up yanrd along with whatever this thing will be called configuring the two and connecting them. Fortunately however yarnd already does this with the feeds service and defaults to using feeds.twtxt.net â So we would so something similar there too. Further thoughts? đ¤
@prologic@twtxt.net a separate binay would work too, maybe yarnd could just start it. if its a separate project - then it could possibly be useful for others as well? Im not sure, Im just thinking - the easier it is to set up and run - the better it is for everyone. Im sure it can be easy to set up and use either way.
@prologic@twtxt.net personally I would like it integrated and opt-in. just enable with a flag when starting up yarnd.
@prologic@twtxt.net that would be very nice, and remove the need to have more services running. I think it would attract more people to run this to use that, sunce yarnd is very easy to set up and run.
Iâve never liked the idea of having everything displayed all of the time for all of history.
And I still donât: Search and Bookmarks are better tools for this IMO.
From a technical perspective however, we will not introduce any CGO dependencies into yarnd â It makes portability harder.
Also I hate SQL đ
@prologic@twtxt.net what files do I need to update on my server if I decide to compile yarnd on another machine? (wondering so that I do not brick anything)..
@prologic@twtxt.net Alright, thereâs some erroneous markdown parsing going on, I reckon. In my original twt I have a code block surrounded by three backticks. The code block itself contains a single backtick. However, at least for rendering, yarnd shows three backticks instead (not sure if my markdown is invalid, though):
đŁ NEW: Announcing the new and improved Yarns search engine and crawler! search.twtxt.net â Example search for âHello Worldâ Enjoy! đ¤ â @darch@neotxt.dk When you have this, this is what we need to work on in terms of improving the UI/UX. As a first step you should probably try to apply the same SimpleCSS to this codebase and go from there. â In the end (didnât happen yet, time/effort) most of the code here in yarns will get reused directly into yarnd, except that Iâll use the bluge indexer instead.