Decentral Solution for @mentions or search
See original GitHub issueSince everyone has his/her own twtxt.txt, we cannot support @mention like on twitter locally. Except if we follow those people already.
If we say that we have registries - custom hosted aggregators like http://twtxt.reednj.com/ - they could provide an api to get all mentions for a twtxt uri (e.g. http://example.org/twtxt.txt like suggested in #6, if a twtxt tweet looks like this: TIMESTAMP @<http://example.org/twtxt.txt> how are you
Api Response could look like this:
TIMESTAMP https://dracoblue.net/twtxt @<http://example.org/twtxt.txt> how are you
if I messaged example.org with a mention.
The advantage of this approach is, that every client can decide at which registry he is registered and which he wants to query for possible mentions. Like a federated web search 😉.
UPDATE 2
An api-doc with swagger UI can be found here https://registry.twtxt.org/swagger-ui/ and a PR is made here #74
UPDATE
Implemented a server for this at https://github.com/DracoBlue/twtxt-registry - will work on a PR now.
A demo runs on https://registry.twtxt.org/api/plain/mentions?url=https://buckket.org/twtxt.txt and gives:
@<dracoblue https://dracoblue.net/twtxt.txt> 2016-02-09T12:57:59.000Z @<buckket https://buckket.org/twtxt.txt> something like https://gitter.im/ or a freenode channel?
@<dracoblue https://dracoblue.net/twtxt.txt> 2016-02-08T22:51:47.000Z @<buckket https://buckket.org/twtxt.txt> looks nice ;)
Issue Analytics
- State:
- Created 8 years ago
- Comments:25 (17 by maintainers)
Top GitHub Comments
Another idea would be to send a email to the person that has been mentioned.
So if you mention someone, twtxt could fetch the meta information about this person, get an email address and sent a mail. Something like this: https://gist.github.com/mmk2410/837686d63385b63d1d8b
Instead since we are mentioning a user whom we are following why don’t we include the user (bob in this example)'s twtxt file via our list of following users (I’m thinking a brute force search in our users following file would land if into the user whom we’ve tagged) and then we can create a parse_mentions.py file which will do a preprocessing of this by linking all mentions of @bob with his HTTP twtxt file link (terminals have hyperlink click support by default).
Also if there are multiple bob’s on click enter after typing a tweet, a prompt would be shown to select the appropriate bob. simple right 😕