grunfink,
@grunfink@comam.es avatar

I'm very glad to announce the release of version 2.27 of , the simple, minimalistic instance server written in ANSI C. It includes some interesting new features (that I announced some days ago):

Started Mastodon API support, so you can use Mastodon-compatible apps to access accounts. What works so far: login, private and public timelines, full post information (replies and ancestors), liking and boosting posts. Things that don't work yet but eventually will: following accounts, posting and replying to messages (I still have to figure out how some things work, like posting images), notifications (needs some internal support), the instance timeline (snac does not have one, but it can be simulated with not much effort) and probably many other things. Things that will never work: bookmarks, pinning, a federated timeline, many other things that I don't remember right now. Please note that if you want to use this API in your instance, you must add some lines to your HTTP proxy configuration, see the snac(8) (administrator documentation) manual page. I'm doing my tests using the (which sometimes crashes, surely my fault), , and Android apps. Success or failure reports will be appreciated.

Fixed some buffer overflows (contributed by Saagar Jha).

Fixed overzealous rejection of some local boosts.

https://comam.es/what-is-snac

pax,

@grunfink any servers to test snac accessibility?

floppy,
@floppy@fosstodon.org avatar

@grunfink I discovered snac a few days ago and I like it a lot! Currently I don't have a good reason for using it, unfortunately. If/when that changes I'll happily give snac a go!

nick,
@nick@norden.social avatar

@grunfink

Nice to know.

I'm also working on an own server (currently called ).

Also using as main app to test (as it is my primary app).

crashes for example, if it gets data in an unexpected format... so it seems not very tolerant in such cases... ;-)

grunfink,
@grunfink@comam.es avatar

Yes, it's a bit crashy at times, but given that I've tried to fed it really broken pieces of data 😆 , I can't blame it. I've found very similar (they are probably a fork of one another, don't know the history behind), but rather more stable.

Implementing the Mastodon API will (I hope) bring more people to installing in their servers, because it will provide the same service with much less machine requirements. But, I feel the way Mastodon and their apps show the timelines (as a plain list of posts, sorted by date) very dull and confusing; composes the conversations as threaded trees, which I feel much more confortable and readable. But when you use an app, you lose all that.

nikclayton,
@nikclayton@mastodon.social avatar

@grunfink @nick have you got examples to hand of data that crashes Tusky?

nick,
@nick@norden.social avatar

@nikclayton

Yes.

There were a lot a longer time ago, that i can't figure out details anymore, but for this one i have created a workaround in my server-side code:

Display of an user profile: If "created_at" is set to NULL, crashes.

Currently i try to track down a crash on displaying local / federated timelines (but not in all cases... so it is a little bit tricky...).

@grunfink

nikclayton,
@nikclayton@mastodon.social avatar

@nick @grunfink created_at is not allowed to be null (https://docs.joinmastodon.org/entities/Status/#created_at). A crash is suboptimal, but probably better than accepting invalid data.

Did you get any further with the timeline crash you mentioned?

grunfink,
@grunfink@comam.es avatar

Regarding , no longer crashes and is pretty usable.

CC: @nick

nick,
@nick@norden.social avatar

@nikclayton

Do we agree, that in general should validate all incoming data? ;-)

No, unfortunately didn't find the time to get into it... yet.

@grunfink

grunfink,
@grunfink@comam.es avatar

And this conversation reminds me that I'm still unable to avoid crashing the official Mastodon app, as well as 😢

CC: @nikclayton

nick,
@nick@norden.social avatar

@grunfink

I'm still not getting these apps connected to an account on my server... :-(

grunfink,
@grunfink@comam.es avatar

I agree that all data should be validated or, at least, don't crash if it's unexpected or non-existent X-)

@nick @nikclayton

nick,
@nick@norden.social avatar

@grunfink

Yes, is based on , adding specific functions.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • ethstaker
  • DreamBathrooms
  • normalnudes
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • everett
  • megavids
  • Durango
  • Leos
  • cubers
  • mdbf
  • khanakhh
  • tester
  • modclub
  • cisconetworking
  • anitta
  • tacticalgear
  • provamag3
  • JUstTest
  • lostlight
  • All magazines