jonny, (edited ) to random
@jonny@neuromatch.social avatar

Hello fedi. i am trying to solve the "fetch all replies" problem once and for all that makes the fedi feel a lot more desolate and with a lot more reply guys in it than it should be. this is take two, where before i had it triggered by a button, but now i think it should happen on the server-side whenever you expand a post. can anyone help me out figure out how to make this more efficient by only fetching posts that the server doesn't already have? i am not sure what the best strategy would be, and if anyone with experience doing efficient rails and SQL stuff could give me some pointers that would be gr8. the patch is actually extremely simple it just needs a few nice things to make it not DDoS everyone.

https://github.com/NeuromatchAcademy/mastodon/pull/44

Issue that describes approach: https://github.com/NeuromatchAcademy/mastodon/issues/43
Wiki page: https://wiki.neuromatch.social/Fetch_All_Replies

forteller, to mastodon
@forteller@tutoteket.no avatar

One thing I really don't like about #Mastodon is that the @ is in the URL (example.social/@user). It just makes everything harder, and does not contribute anything positive, IMO. See also https://mastodon.social/@blaine/112100691575688060

#MastoMeta #MastoDev

paul, to random
@paul@oldfriends.live avatar

Scheduler::VacuumScheduler and Scheduler::UserCleanupScheduler run at the time I am most active. I am sure that is why I have some weird issues when I am surfing my timeline, like when it goes blank. Is there any way to alter the time that they run in SideKiq? If they could run at like noon instead of midnight that would be great.

cheeaun, to random
@cheeaun@mastodon.social avatar

Kinda mind-blown. When @neet 's masto.js migrated to JS Proxy API (https://github.com/neet/masto.js/releases/tag/v6.0.0), I was like "cool, this make so much sense".

But never thought that I would be coding it this way, and it works ✨ Don't have to wait for next/newer versions of masto.js when there are API endpoints/parameter/method changes. It lacks types but fine for me.

#MastoDev

grishka, to fediverse
@grishka@mastodon.social avatar

#Smithereen 0.7 is out, finally making it practical to run a server with open signups.

This release brings too many changes to list here, both internal and external.

  • All-new moderation tools: role-based permissions, revamped reports, new ways of limiting user accounts, and so much more!
  • All-new media storage: Smithereen now keeps track of references to files, simplifying the code, and adds support for S3 object storage.
  • Tens of minor bug fixes and UX improvements.

#ActivityPub #mastodev

Paul, to fediverse
@Paul@hades.town avatar

Anyone got an example of an object with type: "Article"?

cheeaun, (edited ) to random
@cheeaun@mastodon.social avatar

Spent too much time on this. I would call this a media-first UI experience (IG, Pixelfed). Only on my local

Screenshots for before and after.

cheeaun,
@cheeaun@mastodon.social avatar

Now deployed on #PhanpySocialDev (dev.phanpy.social). Media-first UI experience only kicks in for #Pixelfed account log-ins. Basic features work, except:

  • Local and Federated timeline show the same thing
  • Trending, Bookmarks, Reply, Lists, and Filters don't work
  • Notifications page showing duplicate notifications

The rest needs more testing 🙏, though I'm not sure how much feature-detection can be done to hide unsupported features.

#MastoDev

Demo: browsing the local timeline from pixelfed.social, with my thumb scrolling down the timeline and swiping the carousel of images.

mizah, to fediverse
@mizah@macrofurs.social avatar

Anyone see anything particularly objectionable about this record that'd make Mastodon deny this record's very existence? (it gives a 404 not found)

{<br></br>  "context": [<br></br>    "https://www.w3.org/ns/activitystreams",<br></br>    "https://w3id.org/security/v1"<br></br>  ],<br></br>  "id": "https://floatsocial.mizah.xyz/users/mizah",<br></br>  "inbox": "https://floatsocial.mizah.xyz/users/mizah/inbox/",<br></br>  "preferredUsername": "mizah",<br></br>  "publicKey": {<br></br>    "id": "https://floatsocial.mizah.xyz/users/mizah#main-key",<br></br>    "owner": "https://floatsocial.mizah.xyz/users/mizah/",<br></br>    "publicKeyPem": "-----BEGIN PUBLIC KEY-----nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyKR41N0v5zbLa2UT+8LunrgIzWdxzRato3AWsslD4+0cArpTLzGe9fyT3Bi820Ow+5DOTeYSv/E2tqJa8SaivnVKntwWhgWmqOtzvdkgv1c03kbqrH5ScGXnjV5Fzu5Dpf4Pjp//llZomxU/Nf4bKInBiuRiSeyGCvblREj6Z27se94K+6EmhkeXbk0364EJjlaDdq5Xd5NO+dz6+aeQiqdn+PpizIzYwHXBusbMzVExSGHlKi7bp2H6+IEo88/YwlBL6HLDhZO8N/yeVCwkjX3nnYbNduCp71qaJTN/yb8sa463RcsO1d32fk6pEukXmDvgJIqYfzY+OdIK2idfM4QBKnqQIDAQABn-----END PUBLIC KEY-----n"<br></br>  },<br></br>  "type": "Person"<br></br>}<br></br>

Trying to follow this blog post: https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/

#activitypub #mastodon #programming #mastodev #activitypubdev

amberage, to random
@amberage@eldritch.cafe avatar

Question: a desktop software that queries the public Mastodon API to provide an overview of an instance (about page, rules, admin account, user count, moderated instances) – would that have any scraping / block circumventing concerns?

This would be without access token and such, so authorised fetch, disallow public API access, etc. would prevent fetching any information. And all of this is publicly available information that can be queried from /api/v1/instance without requiring authorization (by default). Basically, nothing you couldn't find by going to instance.example/about.

Any privacy/block concerns I'm missing?

sonny, to mastodon
@sonny@floss.social avatar

deleted_by_author

  • Loading...
  • nemobis,
    @nemobis@mamot.fr avatar

    @sonny Is it some kind of dark joke "dare us to show you how many bad ideas we can copy from Facebook"?

    #MastoDev

    grishka, to fediverse
    @grishka@mastodon.social avatar

    I want an opinion. If you have a rule to not allow signups with some email domain, would you expect it to also apply to signup requests, when your server is in manual-approval mode?

    ddlyh, to random
    @ddlyh@topspicy.social avatar

    Looks like the New Interface for doesn't run in on my (now-fixed after nearly 3 months) PC! The error is Uncaught TypeError: Object.hasOwn is not a function, which is presumably because IceCat doesn't use the latest JS (it's something like a couple of years behind FF), but that shouldn't be a reason to break on it! I hope this new interface isn't rolled out to here too! @Gargron

    nekohayo, to GNOME
    @nekohayo@mastodon.social avatar

    The newly released 0.7.0 version of @Tuba, your -native client, is friggin' awesome. Not only does it ship tons of bugfixes and allows darker images in dark mode, but it also ships the ability to create, edit and apply words filters (as you can see in my screenshot here) so you can simplify your timelines views.

    Congratulations to @GeopJr for this fantastic leap forward!

    cheeaun, to mastodon
    @cheeaun@mastodon.social avatar

    👀 Looks like the new (upcoming) mute confirmation dialog design on Mastodon also changed the mute durations from "5 mins, 30 mins, 1 hour, 6 hours, 1 day, 3 days, 7 days" to "24 hours, 7 days, 30 days" https://github.com/mastodon/mastodon/pull/29576/files#diff-9f3be69f361ef80e15a82284ef6e39f248ea54db58d76f7e338a2d3a27c83387L112-L120

    #Mastodon #MastoDev

    Paul, to fediverse
    @Paul@hades.town avatar

    Mastodon doesn't seem to like my new AP server, can anyone help me debug the problem?

    The actor is @paul

    grishka, to fediverse
    @grishka@mastodon.social avatar

    Is there an server where I need to parse HTML for <link type="application/activity+json" href="..."/> to get to the JSON representation of an object? I want to add support for this in but I need something to test against.

    paul, (edited ) to ruby
    @paul@oldfriends.live avatar

    Doing a random check of my server logs, looking for oddities and trouble.

    In 'journalctl -u mastodon-web' I see, "ERROR -- : [ActionDispatch::HostAuthorization::DefaultResponseApp] Blocked hosts: <my server IP address>" as shown below.

    Does this just mean someone/something is trying to access my Mastodon instance from the IP address and not the host name?

    Safe to ignore? Normally the IP forwards to the domain name. I just checked and it does.

    Brendanjones, to mastodon
    @Brendanjones@fosstodon.org avatar

    I think one of the most powerful changes we could make to content discovery on Mastodon is by showing hashtagged posts to everyone following that tag.

    Right now, you only see tagged posts from your federated feed, which is (I think): posts and boosts from your follows, from anyone on your server, and from anyone followed by anyone on your server

    If you’re on a big server then yes, that is a lot of posts, but it’s no way near all of them!

    Community-building needs this.

    RichiH, to random
    @RichiH@chaos.social avatar

    I'd like a way to mute people on Mastodon for a month or half a year; many are not toxic enough for an indefinite mute, but draining enough that a week feels too short.

    nemobis,
    @nemobis@mamot.fr avatar
    Brendanjones, to UX
    @Brendanjones@fosstodon.org avatar

    I've long seen people question why there's a perception that Mastodon is hard to use.

    Let me use a really concrete example I just came across that breaks the maxim "don't make me think":

    Bluesky just added keyword muting, and it's way easier than doing it here.

    While viewing any feed/post:

    Moderation > Muted words and tags > type in word (the focus is in text field, no click required) > hit enter > click back button twice to return to where I was.

    That's 4 clicks.

    samhenrigold, to mastodon
    @samhenrigold@hachyderm.io avatar

    Mastodon for Android feature drop!!

    • A super fast way to exchange handles with each other (with a really snazzy visual design)
    • Expanded our safety (read: reply guy) prompt experiment from last year and added some with details before you block or mute someone

    https://blog.joinmastodon.org/2024/02/mastodon-for-android-update/

    #mastodon #mastodev #android

    cheeaun, to random
    @cheeaun@mastodon.social avatar

    Wondering if a no-CSS + no-JS embed code would be useful or make sense? 🤔

    #PhanpySocialDev (not on dev site yet) #MastoDev

    Demo of Embed code functionality on Phanpy, that shows a modal that renders the embed HTML code for a post.

    michael, to random
    @michael@thms.uk avatar

    Huh. Weird thing happening for me on my instance today:

    Every time I search for a remote post I get a 500 response back. The mastodon-web log contains these lines:

    Feb 27 07:15:35 mstdn bundle[303256]: I, [2024-02-27T07:15:35.068592 #303256]  INFO -- : [85d69f6b-1639-485d-b257-7afad97453b8] method=GET path=/api/v2/search format=html controller=Api::V2::SearchController action=index status=500 allocations=13905 duration=104.73 view=0.00 db=7.69<br></br>Feb 27 07:15:35 mstdn bundle[303256]: F, [2024-02-27T07:15:35.068929 #303256] FATAL -- : [85d69f6b-1639-485d-b257-7afad97453b8]<br></br>Feb 27 07:15:35 mstdn bundle[303256]: [85d69f6b-1639-485d-b257-7afad97453b8] ActiveRecord::StatementInvalid (PG::InternalError: ERROR:  must be superuser to use repack_trigger function<br></br>Feb 27 07:15:35 mstdn bundle[303256]: ):<br></br>
    

    I’ve got elasticsearch installed and that seems to work just fine: searching for anything other than a url isn’t a problem.

    Does anyone have any ideas?

    What’s that repack_trigger function doing there?

    #mastoadmin

    michael,
    @michael@thms.uk avatar

    OK, I think I've gotten a bit closer to a reason for this:

    It appears the media_attachments table has a few triggers that will call attempt to repack the table.

    SELECT trigger_name, event_manipulation, event_object_table,action_statement,action_orientation,action_timing<br></br>FROM information_schema.triggers ;<br></br>  trigger_name  | event_manipulation | event_object_table |               action_statement               | action_orientation | action_timing<br></br>----------------+--------------------+--------------------+----------------------------------------------+--------------------+---------------<br></br> repack_trigger | INSERT             | media_attachments  | EXECUTE FUNCTION repack.repack_trigger('id') | ROW                | AFTER<br></br> repack_trigger | DELETE             | media_attachments  | EXECUTE FUNCTION repack.repack_trigger('id') | ROW                | AFTER<br></br> repack_trigger | UPDATE             | media_attachments  | EXECUTE FUNCTION repack.repack_trigger('id') | ROW                | AFTER<br></br>
    

    But why? Surely I shouldn't ever run the mastdon database as super user, so this will always cause issues, as pg_repack can only be run as superuser? And most people probably don't have the extension installed at all.

    What's going on here?

    #mastoadmin #sql #postgresql #mastodev

    paul, (edited ) to random
    @paul@oldfriends.live avatar

    It's not a deal breaker, just a wish list item, but I wished filters would let you see the username of the post you muted when filtering with a warning.

    Something like, "Filtered: <User> rule: Muted Domains.

    Sometimes you want to see what is hidden under the filter, esp if you trust or interact with the user the rule is applied to. #MastoAdmin #MastoDev

    Created a suggestion here: https://github.com/mastodon/mastodon/discussions/29422

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