Giter VIP home page Giter VIP logo

Comments (3)

b-xb avatar b-xb commented on July 1, 2024 2

Hi, I saw that my patch was mentioned here.

I have submitted a pull request for the patch now at the following link.

mastodon/mastodon#28874

I have no idea if the pull request will be accepted or not, though, as I am not a part of the core team.

from tuba.

GeopJr avatar GeopJr commented on July 1, 2024 1

TBH, I'd rather the API improved on that than do it myself. Here's how it works:

Every post has a tags property that includes are the tags found in the post, e.g.

{
	"tags": [
		{
			"name": "gnome",
			"url": "https://tech.lgbt/tags/gnome"
		},
		{
			"name": "test",
			"url": "https://tech.lgbt/tags/test"
		}
	]
}

What Mastodon and other software that have API compat should do is to provide another property on each tag, following : Bool, so it would become, for my account at least:

{
	"tags": [
		{
			"name": "gnome",
			"url": "https://tech.lgbt/tags/gnome",
			"following": true
		},
		{
			"name": "test",
			"url": "https://tech.lgbt/tags/test"
		}
	]
}

This is being tracked on Mastodon's issue tracker FWIW mastodon/mastodon#19528 and a working patch in the comments does exactly what I described above

The way some clients do it right now is by keeping track of followed hashtags themselves. My issue with that is mainly syncing. Both the initial sync between app restarts AND while the app is running. Picture this, you have Tuba running on your desktop and you decide to open Mastodon on your mobile phone. You follow a hashtag from there and suddenly when you get back to your desktop, there's a new post at the top of your timeline by someone using the hashtag you just followed and you are left confused as to why it's in your timeline and why Tuba doesn't show that it's because of the hashtag you are following - which is something you know it does

A solution would be to GET the user's hashtags every so often so they sync but honestly idk if it's worth it

from tuba.

LukaszH77 avatar LukaszH77 commented on July 1, 2024

Waiting for the fix in Mastodon's API seems reasonable, thanks for explaining!

from tuba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.