andypiper, (edited ) to random
@andypiper@macaw.social avatar

Occasional post to remind folks that I'm always on the look-out for new projects and fun uses of the #MastodonAPI - let me know what your favourite new tools are! 👀

strypey, to fediverse
@strypey@mastodon.nzoss.nz avatar

#IdleThought: what would happen if you connected the web app of PixelFed to an Akkoma back-end? Does PF use the Mastodon client-to-server API?

#fediverse #PixelFed #Akkoma #MastodonAPI

mstankiewicz, to mastodon Polish
@mstankiewicz@pol.social avatar

Czy chcielibyście rozszerzenie do przeglądarek (Chromium i Firefox-podobne), która pozwala szybko udostępniać linki na #Mastodon poprzez #MastodonAPI? 🤔

walleri, to swift

Today I'm excited to finally introduce @walleri!
Walleri is a Mastodon Client that lets you listen to your timeline instead of reading it!
Here is the TestFlight Link: https://testflight.apple.com/join/kex6mnjV
If you have any feedback - good or bad, don't hesitate to reach out!

mousebot, to mastodon
@mousebot@todon.nl avatar

#mastodev #mastodon #mastodonAPI #help

does anyone know the maximum number of times you can pass an any[] path parameter to the mastodon API?

(i thought i could have a timeline of all tags i'm following, but it doesn't work, so the max must be pretty small.)

(have asked on official docs repo, no answer.)

Edit: looks like the maximum number of elements in the any[] array is a measly, stingy 4! sad face.

gittaca, to random German

Ist es irgendwie möglich, per #MastodonAPI einen Datenexport anzustoßen und runterzuladen? Würde das gerne 1x monatlich machen & um trotz 2-monatlicher "automated post deletion" mein Archiv automatisch lokal komplett zu halten.

Weder MastodonPy noch rtoot scheinen das zu können. Vielleicht kennt @ordnung eine Lösung?

stefan, to mastodon
@stefan@stefanbohacek.online avatar

Ah, Mastodon's API only lets you pin your own posts to your profile. Bummer.

Twitter wouldn't let you pin other people's posts through their interface, but at least there was a way to do this via their API.

https://docs.joinmastodon.org/methods/statuses/#pin

#mastodon #MastodonAPI

box464, to random
@box464@mastodon.social avatar

This may have been around for awhile, but I just found that Postman has an AI code generator that can assist with making visualizations of API responses, including Mastodon search results.

#Postman #MastodonAPI

Edent, to mastodon
@Edent@mastodon.social avatar

🆕 blog! “How far did my post go on the Fediverse?”

I wrote a moderately popular post on Mastodon. Lots of people shared it. Is it possible to find out how many different ActivityPub servers it went to? Yes! As we all know, the Fediverse is one big chain mail. I don't mean that in a derogatory way. When I write a post, it appears on […]

👀 Read more: https://shkspr.mobi/blog/2023/09/how-far-did-my-post-go-on-the-fediverse/

reiver, to fediverse
@reiver@mastodon.social avatar

The Mastodon API mixes nouns and verbs in the path.

(The canonical way of doing it is for the path to just be nouns.)

#fediverse #mastodon #mastodonAPI

image/png

Edent, to random
@Edent@mastodon.social avatar

I have followers on 928 different ActivityPub instances 🤯

#MastodonAPI

toxi, (edited ) to opensource
@toxi@mastodon.thi.ng avatar

#HowToThing #016 — Building a small (and very incomplete!) Mastodon UI with #ThingUmbrella. Still, the following features are included so far and demonstrate:

UI features:

  • Account details w/ header image, avatar, bio
  • Media previews for images, gifv, videos
  • Fullscreen modal overlay for images & alt text
  • UI design heavily inspired by the amazing @phanpy (😍)

Alas, the code for this new example (#131) is too long & too split up for showing here in this format, but it's well documented and you can find it all linked below...

Demo:
https://demo.thi.ng/umbrella/mastodon-feed/

Source:
https://github.com/thi-ng/umbrella/tree/develop/examples/mastodon-feed/src

I hope this (and other parts) of this ongoing #HowToThing series are interesting to you. If so, please consider boosting and/or supporting my #OpenSource work via GitHub or Patreon. Thank you very much in advance!

https://github.com/sponsors/postspectacular
https://patreon.com/thing_umbrella

#TypeScript #JavaScript #Mastodon #UI #Reactive #FunctionalProgramming

toxi,
@toxi@mastodon.thi.ng avatar
Edent, to random
@Edent@mastodon.social avatar

Is there any way to see how far a Mastdon post has travelled?

For example, I can see all the people who have reposted it - and that will show me all the federated servers those users are on.

But that doesn't show me who follows those users and, therefore, where it went from there.

I might not be explaining myself very well…

Edent,
@Edent@mastodon.social avatar

With the #MastodonAPI, I can request the server names of every reposter of my status.

But I'm limited to 40 at a time.

Then I can grab their followers and find their server names.

But, again, 40 at a time.

The rate limits are 300 requests per 5 minutes (once per second).
https://docs.joinmastodon.org/api/rate-limits/#per-account

Edent,
@Edent@mastodon.social avatar

After lots of waiting for the API rate limits to cool down, here's what I discovered.

This post - https://mastodon.social/@Edent/111040801202691232 - was reposted about 100 times.

It was syndicated across the Fediverse and (probably) appeared on 2,508 different instances!

#MastodonAPI

Edent, to random
@Edent@mastodon.social avatar

Is there any way to pin / save a search on the Mastodon UI?

I know I can have a column of hashtag posts - but I'm looking for something which shows the results of a complex search query.

The search results page doesn't contain the query in the URl, so I can't use that.

I can't see anything in the #MastodonAPI about saving a query.

Any ideas, gang?

Edent, to internet
@Edent@mastodon.social avatar

🆕 blog! “On The Fediverse, No One Knows You're A Liar”

One of the reasons I'm still on the original Mastodon.social instance is that I am vain. I joined shortly after the project was announced and, as a consequence, I have a "joined" date of 2016 and a user ID of under 10,0001. This doesn't make me an "elder statesman" and is rarely useful beyond bra…

👀 Read more: https://shkspr.mobi/blog/2023/08/on-the-fediverse-no-one-knows-youre-a-liar/

mate, to python French
@mate@3615.computer avatar

"Failed to unbookmark status"

meh... 😕

Edent, to mastodon
@Edent@mastodon.social avatar

🆕 blog! “Some thoughts on Mastodon search”

The latest version of Mastodon includes search functionality. It's early days, but seems to work pretty well. Here are some of the interesting things I found when using it. Search is complex - expectations I don't mean the act of searching a database - that's routine - but I mean it is socially complex. Lots […]

👀 Read more: https://shkspr.mobi/blog/2023/08/some-thoughts-on-mastodon-search/

#mastodon #MastodonAPI #search

JoeP, to mastodon
@JoeP@mastodon.world avatar

OK, #Mastodon question which has been bugging me.

Is it possible to restrict your timeline by ... time? Like "12h ago to 4 hours ago". Other than by scrolling scrolling scrolling, keep them thumbwheels scrolling, rawhide ...

I'll take answers that apply to Mastodon web, or Android apps Mastodon or #Tusky or #Megalodon. Or in fact anything.

I'm also up for coding this in #Python using the #mastodonapi. But I suspect the protocol may not encode time.

andypiper, to random
@andypiper@macaw.social avatar

A new #MastodonAPI client in PHP 🎉 I love things like this, and want to ensure that community-contributed libraries are publicised for everyone to benefit. Thank you @lhengstmengel 🙏🏻 https://github.com/mastodon/mastodon/discussions/26451

sivy, to random

Fedi/Mastodon programmers... with the , and given a url to a post on any instance (assuming I have access to the toot from my account), how might I get my instance to fetch it and give me a "local" ID that is suitable for passing as the "inReplyToID" in a toot payload?

mikebrew, to random
@mikebrew@mastodon.social avatar

@ivory does the #MastodonAPI make it possible to make a list of #hashtags to follow? I’d love to be able to switch over to a list that just follows hashtags relevant for a topic.

box464, to random
@box464@mastodon.social avatar

I just noticed that Mastodon web is identifying Group accounts in the UI and happy to see it.

With the #Threadiverse expanding, I appreciate knowing that I am replying or interacting with a Group account, where my response may end up in front of audiences I wasn't expecting.

Hoping more third party clients will start adding this as well.

The identifier is included in any Account element returned in through the official API.

https://docs.joinmastodon.org/entities/Account/#group

#MastodonApp #MastodonAPI

Haijo7, to fediverse
@Haijo7@snac.haijo.eu avatar

Adding #e2ee to DMs on the fediverse sounds relatively simple, but is actually more complicated than I initially thought.

A property for a public key could be added to the object contains info about a user (name, pfp, inbox, etc).
This public key can then be used to encrypt the contents of a message/note, except for the recipient.
The remote server will still be able to see what server the message came from and who the message is for.
The recipient's client then needs to decrypt this message, but where is the decryption key stored?
Perhaps it can be stored on the server encrypted using the user's password?
Upon logging in, the encrypted decryption key would be sent to the user.

This wouldn't actually work, a server admin can always modify the server code to log passwords.

Encryption would have to be implemented client side separately.
The private key can't be stored on the server securely. The user needs a way to create a key pair, then send the public key to the server and store the private key.
On browsers this would require JavaScript that needs to be downloaded from the server, which can be modified to add a backdoor. On apps this would work a lot better.

But when a user just installed a new app/client, they won't be able to see their older DMs.

The only realistic way of implementing this is as an extension to the mastodon api, it's too easy to backdoor on browsers by either server admins, malicious browser plugins or network admins.

#encryption #DMs #fediverse #activitypub #api #mastodonapi #security

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