@tom79 @liberadalinux @mmn @maryjane @colegota @diogo @aab @dalme Few hours ago someone ask for the consumption of the gnusocial service. This is my answer

@foo @mmn @maryjane @colegota @up201705417 @liberadalinux @aab @dalme

Hey, could you help me to understand how to exclude these automatic toots sent to my home timeline after an action (deleted/fav) from me. See attached. Thanks.

PS: I use "statuses/home_timeline.json"

Follow

@tom79

I remember the developer of @AndStatus also dealing with this somehow. Maybe it is a matter of parsing this statuses?
Actually these messages are something that I miss in mastodon. I like to see what people fav 😉

@foo @mmn @maryjane @colegota @up201705417 @liberadalinux @aab @dalme

@nestort
Ok. Maybe there is a special parameter in the returned object. So I can filter them.
@AndStatus @foo @mmn @maryjane @colegota @up201705417 @liberadalinux @aab @dalme

@nestort @tom79 Parsing isn't necessary, that'd be a horrible solution. It's all in the appropriate XML data structure/metadata, in the activity:verb - <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>

The thing is that these are not "post" verbs, they're "favorite" instead for example. Just read the data properly and you'll be fine. I think there's some hack to make JSON suck less. The real way to parse it with JSON wouldn't be the sucky Twitter-api-feed ".json" but rather ".as", but JSON will always be second to XML in awesomeness anywayz...

The hack for the .json endpoint might be something like:
is_post_verb: "false",

@mmn
Oh. I chose something simpler, I noticed statuses contain the uid. So I hide them in this case. That let messages for favorite ones but as they are not accessible from notifications, it's finally a good compromise.
@nestort

@mmn
I am not against using xml (though all other api returns json, so it's more confortable).
I am starting with GNUSocial, but the api was not really clear, especially the Twitter ones. Some endpoints are available but not mentioned (rt_by).
So my work was more about checking and testing as the doc seem to be outdated.
@nestort

Sign in to participate in the conversation
mastodont.cat, xarxa social pels catalans d'arreu.

mastodont.cat és una instància en català de la xarxa social Mastodon, per a la comunitat de llengua i cultura catalana d'arreu d'internet.

Mastodon és descentralitzada i de programari lliure.

Mastodon és dels humans i no dels algoritmes ni dels interessos de corporacions.

Mastodon és per als humans, en comptes dels anunciants i recol·lectors de dades.

*** Registre: per alguna raó no és possible utilitzar adreces de correu de Microsoft (hotmail.com, live.com, outlook.com, msn.com). Microsoft rebutja sense motiu els correus de verificació que envia mastodont.cat. Disculpeu les molèsties.