Exactly that, yeah. Thank you for the link.
freamon
I am also ‘Andrew’, the admin of this server. I’ll try to remember to only use this account for posting stuff.
- 0 Posts
- 28 Comments
It’s straight-forward enough to do in back-end code, to just reject a query if parameters are missing, but I don’t think there’s a way to define a schema that then gets used to auto-generate the documentation and validate the requests. If the request isn’t validated, then the back-end never sees it.
For something like https://freamon.github.io/piefed-api/#/Misc/get_api_alpha_search, the docs show that ‘q’ and ‘type_’ are required, and everything else is optional. The schema definition looks like:
/api/alpha/search: get: parameters: - in: query name: q schema: type: string required: true - in: query name: type_ schema: type: string enum: - Communities - Posts - Users - Url required: true - in: query name: limit schema: type: integer required: falserequiredis a simple boolean for each individual field - you can say every field is required, or no fields are required, but I haven’t come across a way to say that at least one field is required.
PieFed has a similar API endpoint. It used to be scoped, but was changed at the request of app developers. It’s how people browse sites by ‘New Comments’, and - for a GET request - it’s not really possible to document and validate that an endpoint needs to have at least one of something (i.e. that none of ‘post_id’ or ‘user_id’ or ‘community_id’ or ‘user_id’ are individually required, but there needs to be one of them).
It’s unlikely that these crawlers will discover PieFed’s API, but I guess it’s no surprise that they’ve moved on from basic HTML crawling to probing APIs. In the meantime, I’ve added some basic protection to the back-end for anonymous, unscoped requests to PieFed’s endpoint.
freamon@preferred.socialto
New Communities@lemmy.world•Mass migration to Piefed for various history and meme subs!English
16·1 year agoThe best way to provide
!links that work for the most people is just to type them out as plain text, not as a hyperlink to anything.So, these communities can be found at:
Also, from what I can tell, they haven’t been moved using PieFed’s community migration facility (which squishes the old remote community into a new local one and retains the history (e.g. like what happened with like [email protected] ). These are just brand new communities, starting from scratch.
freamon@preferred.socialto
New Communities@lemmy.world•Piefed now has a built-in alternative to Lemmyverse to discover and search for active communities, with the "Active people" filter on the communities page (weekly basis)English
3·1 year agoI’ll just remove the ‘freamon’ one when the auto-generated one is up to date.
The manually-generated one had 5 missing routes, which I’ve since added.
The auto-generated one at crust has about 48 missing routes. It’s the right approach, and I’ll help out with it when I can, but - for now at least - it makes no sense to redirect people to it (either automatically or via a comment).
Some thoughts for @[email protected]
/site/instance_chooserprobably doesn’t need to be a route. It’s just the data format returned by/site/instance_chooser_search. As a route, it’s returning the instance info for the site you’re querying, so if you want to keep it as a route, it should probably be called/site/instance_infoor something.In the query for
/site/instance_chooser_search,nsfwandnewbieare both booleans. With the rest of the API, these are sent as ‘true’ or ‘false’, but they are ‘yes’ and ‘no’ for this route. Thenewbiequery should probably benewbie_friendlyIn the response,monthsmonitoredshould probably bemonths_monitoredThere’s no way to exclude communities for the response to
/topic/listand/feed/list: If you don’t put ‘include_communities’ in the query, it’s defaults to True, but if you put ‘include_communities=false’ in the query it ends up being True also (because the word ‘include_communities’ is in the data).
I watched Jurassic World: Rebirth the other day (it’s alright). It’s such an odd franchise - one that seems to have lost faith in its own premise. There’s this meta assumption that audiences are bored with dinosaurs (I’m not), and that the solution to this imagined problem is to mutate them (it really isn’t, it’s invariably just silly).
I also don’t care that dinos couldn’t really survive in the modern climate - that’s what the whole ‘suspension of disbelief’ thing is for.
freamon@preferred.socialto
Fediverse@lemmy.world•2 Instances are being used for coordinated vote manipulation, and should be defederated. chinese.lol lemmy.doesnotexist.clubEnglish
121·2 years agoWhat is the update delay for Fediseer?
I don’t know. It’s not something I’m familiar with - it might just default to saying ‘closed’ if it doesn’t have the data.
It’s interesting that the obvious bot accounts on those instances were set up in mid-March last year, so I’m guessing that these are somebody’s army that they’ve used before, but overplayed their hand when they turned it on the DonaldJMusk person. The admins can reasonably be blamed for setting up instances with open registrations and no protections and then forgetting about them, but I’d be wary of blaming them for being behind the attack directly. The ‘nicole’ person is unlikely to have used their own instance - it’s probably just someone with the same MO as whoever owns the bots, finding and exploiting vulnerable instances.
freamon@preferred.socialto
Fediverse@lemmy.world•Lemmy Mastadon (automated crossposting?) interaction issue.English
7·2 years agolemmy.world recently updated from version 0.19.3 to 0.19.10. This change - for Lemmy communities to federate out posts with the community name as a hashtag - was introduced in 0.19.4, so that might be the other reason why this has only just become an issue for you.
freamon@preferred.socialto
Fediverse@lemmy.world•2 Instances are being used for coordinated vote manipulation, and should be defederated. chinese.lol lemmy.doesnotexist.clubEnglish
292·2 years agoThe attacker seems to be the admin of those two instances. Both instances have their registrations closed.
The alternative theory would be that these instances had open registrations, but rightly closed registration down after the admins noticed the bots. chinese.lol is on 0.18.4 with an admin with a 2 year old account, lemmy.doesnotexist.club has an admin with a 1 year account, and it was also that instance that the ‘nicole’ person has used before. This downvote attack would need to be a long time in the planning for what you’re suggesting to be true.
freamon@preferred.socialto
Fediverse@lemmy.world•The fediverse has a bullying problemEnglish
13·2 years agoI don’t think that blog author is male, btw.
freamon@preferred.socialto
Lemmy Shitpost@lemmy.world•Finally, FINALLY! SENPAI NOTICED ME!English
19·2 years agoIt’s harder to detect, but wildly optimistic if they think that people are going to manually type URLs out. It feels like this latest manoeuvre is just to score a win in the arms race against them.
freamon@preferred.socialto
Fediverse@lemmy.world•Has anyone ever migrated a Lemmy instance to Piefed?English
7·2 years agoI think that’s what he meant, yeah (no existing DB migration scripts, etc). I don’t know much about it, but I imagine it was probably always going to involve someone more familiar with Lemmy diving into the trenches.
freamon@preferred.socialto
Fediverse@lemmy.world•Pixelfed: "groups" are coming and they will be compatible with Lemmy (who knows if they will also be compatible with Friendica)English
12·2 years agoHe’s mentioned this before, but I’ve never been able to find an actual PixelFed Group (it doesn’t appear to be the same thing as what they call Collections). I’ll have another look when pixelfed.social enables them this weekend (but I suspect parsing titles for the posts will be a nightmare).
Also, ‘smithereen’ is tagged but I’m not sure of its status (all I found was 1 private instance run by the dev, federated with 1 “explicitly-free-speech” Akkoma instance).
I once did some office work for a tobacco company, where you were allowed to smoke at your desk. I don’t smoke, but I had a few ciggies when I was there, because you realise that you’ve never really pointed at anything, until you’ve pointed at it with a cig in your hand. It’s just a better way to point at stuff (I don’t make the rules).
You don’t need to apologise. I wasn’t trying to give you a hard time (sorry if it seemed like that). The remote posts I linked to in my earlier comment have now gone (maybe I was being given a cached version before - that’s a possibility I often forget about).
freamon@preferred.socialto
Fediverse@lemmy.world•Place to post videos to share on Lemmy?English
2·2 years agoImgur can also handle videos with audio. The main restriction with them is that the MP4s have to be less than a minute.
I’ll embed one here, which may or may not work, depending on what you’re using (if it doesn’t embed, the post is here)
click
freamon@preferred.socialto
Programmer Humor@lemmy.ml•Sure, we’ll refactor the code when get that 'free time' everyone keeps talking aboutEnglish
3·2 years ago(I know I’m full of shit, even when I’m writing the comment).
freamon@preferred.socialto
Fediverse@lemmy.world•confused about communities and servers.English
51·2 years agoPieFed is just a Fediverse platform that aims to inter-op with Lemmy in much the same way that it aims to inter-op with any other Group-based platform (MBIN, PeerTube, NodeBB, Wordpress).
Lemmy’s “quirks” are the reason why your account won’t see Polls from MBIN, or channels from PeerTube, or posts from NodeBB, or backfilled content from Wordpress.
It’s not my intent to criticise Lemmy, but these are verifiable problems, whereas it doesn’t seem fair to criticise PieFed for problems that you can’t clearly remember.



Speaking of being needlessly destructive with stupid bots, these duplicates of other user’s posts don’t even register as cross-posts anymore (due to image proxying).