søren peter mørch

Timeline

Recent posts from feeds followed by sorenpeter@darch.dk

alexonit (twtxt.alessandrocutolo.it)

@lyse @prologic Can't we find a middle ground and support both?

The thread is defined by two parts:

  1. The hash
  2. The subject

The client/pod generate the hash and index it in it's database/cache, then it simply query the subject of other posts to find the related posts, right?

In my own client current implementation (using hashes), the only calculation is in the hash generation, the rest is a verbatim copy of the subject (minus the # character), if this is the common implemented approach then adding the location based one is somewhat simple.

function setPostIndex(post) {
    // Current hash approach
    const hash = createHash(post.url, post.timestamp, post.content);

    // New location approach
    const location = post.url + '#' + post.timestamp;

    // Unchanged (probably)
    const subject = post.subject;

    // Index them all
    addToIndex(hash, post);
    addToIndex(location, post);
    addToIndex(subject, post);
}

// Both should work if the index contains both versions
getThreadBySubject('<a href="?search=abcdef" class="tag">#abcdef</a>') => [post1, post2, post3]; // Hash
getThreadBySubject('https://example.com#2025-01-01T12:00:00') => [post1, post2, post3]; // Location

As I said before, the mention is already location based <a href="/timeline/profile?url=https://example.com/twtxt.txt">@example</a>, so I think we should keep that in consideration.

Of course this will lead to a bit of fragmentation (without merging the two) but I think this can make everyone happy.

Otherwise, the only other solution I can think of is a different approach where the value doesn't matter, allowing to use anything as a reference (hash, location, git commit) for greater flexibility and freedom of implementation (this probably need the use of a fixed "header" for each post, but it can be seen as a separate extension).

In reply to: #3h7w7ca 1 year ago
zvava (twtxt.net)

@bender just a heads up im thinking of rewriting the database schema with hash v2 in mind >.<

In reply to: #wwnhgva 1 year ago
prologic (twtxt.net)

@kat @kat Pretty sure I have many more mentions in the database than the one and only one I see hmmm 🤔 -- I'll have a look at the code when I can and the SQL query it's using

In reply to: #aswrqka 1 year ago
zvava (twtxt.net)

@bender i also recently discovered there was a bug causing new users to initialize wrong leading to their posts not being saved :p ..and made breaking changes to how the config and database files are stored so um, make sure to clear your local tree before updating!

In reply to: #yyuo34q 1 year ago
prologic (twtxt.net)

Chances are the database bought wasn't cheap at all and was aold by some scam company that probably ripped them from six figures or more for a database that's full of rubbish. 🤣

In reply to: #xukjpvq 1 year ago
kat (yarn.girlonthemoon.xyz)

linode's having a major outage (ongoing as of writing, over 24 hours in) and my friend runs a site i help out with on one of their servers. we didn't have recent backups so i got really anxious about possible severe data loss considering the situation with linode doesn't look great (it seems like a really bad incident).

...anyway the server magically came back online and i got backups of the whole application and database, i'm so relieved :')

Read replies 1 year ago
thecanine (twtxt.net)

@kat yes, both the newsletter and the podcast, from time to time.

@prologic I was not expecting much, but since the list of restaurants near company buildings, was hard coded into it, I did expect it to at least copy the menu text, from the websites, in its database. Ironically, the only restaurant where it got something right, is the only one, where the websites has the text as a transparent PNG, the AI has to convert to text.

In reply to: #2wgz4zq 1 year ago
prologic (twtxt.net)

I asked ChatGPT what it knows about Twtxt 😂 And surprisingly it's rather accurate:

Twtxt is a minimalist, decentralized microblogging format introduced by John Downey in 2016. It uses plain text files served over HTTP—no accounts, databases, or APIs. In 2020, James Mills (@prologic) launched Yarn.social, an extended, federated implementation with user discovery, threads, mentions, and a full web UI. Both share the same .twtxt.txt format but differ in complexity and social features.

Read replies 1 year ago
kat (yarn.girlonthemoon.xyz)

@movq json and database put together sounds terrifying. i must try jenny

In reply to: #mkhkhuq 1 year ago
bender (twtxt.net)

@prologic is it twice on database, or simply rendering twice? If you manually expunge it, will it affect the yarn?

In reply to: #yyriova 1 year ago
Reply via email