freamon

joined 1 year ago
MODERATOR OF
[–] freamon 5 points 8 months ago (5 children)

No settings page (as far as I'm aware), but you can use the API to get everything (posts, comments, etc):

step 1: get login token -

curl --request POST \
     --url https://lemmy.ml/api/v3/user/login \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "username_or_email": "2br02b",
  "password": "YOUR-PASSWORD"
}
'

step 2: use login token (big long string starting with 'ey') to get data -

curl --request GET \
     --url 'https://lemmy.ml/api/v3/user?username=2br02b&page=1' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer YOUR-JWT'

Increment page number until you have everything. source: https://lemmy.readme.io/reference/get_user

[–] freamon 2 points 8 months ago

Edited to account for blahaj updating to 0.19.3 ... hopefully that's the last big instance to change.

It's been about a week since sh.itjust.works and lemmy.world updated, so results from those instances will start appearing again soon.

[–] freamon 2 points 8 months ago (1 children)

Voyager has a setting for "No subscribed in All/Local" that does this. It's better on than off, obviously, but it doesn't turn All or Local into some kind of goldmine.

I get the sense that, unless you're willing to do it yourself, feature requests for Lemmy don't have much chance of being realised.

[–] freamon 5 points 8 months ago (1 children)

Bit mad, as in a bit strange - e.g. "it's a bit mad to take a single word out of its obvious context for such a desperately cheap shot".

[–] freamon 9 points 8 months ago (2 children)

As another Brit, it's not, no. It's too good a word for any country to keep to themselves. On Mastodon someone suggested Chinook was British too, but I only know about that 'cos of the helicopter.

[–] freamon 6 points 8 months ago (6 children)

Wait, what? A user posts a thing to a server, and that thing isn't then duplicated to 50 other servers ... yeah, I don't see how that can work.

(I'm just kidding - your site looks neat.)

[–] freamon 5 points 8 months ago

[email protected] - yeah, go on then. subbed.

[–] freamon 1 points 8 months ago

Oh, yeah, cross-posts are great - I think it's something we're all supposed to be doing. I wouldn't say anything usually - just thought this image might raise questions that the creator could perhaps answer.

[–] freamon 2 points 8 months ago (2 children)

(sorry to intrude). This has had a few cross-posts on Lemmy. The link that goes to [email protected] is attributed to the author of the image, so you can reply to them via that community if you wish.

[–] freamon 5 points 8 months ago (1 children)

(sorry to intrude). This has had a few cross-posts on Lemmy. The link that goes to [email protected] is attributed to the author of the image, so you can reply to them via that community if you wish.

[–] freamon 0 points 8 months ago

(sorry to intrude). This has had a few cross-posts on Lemmy - this one technically wasn't, but it seems Lemmy has picked up on it. If you want some ALT text, and to reply to author of this image, the link that goes to [email protected] provides that.

[–] freamon 1 points 8 months ago (1 children)

Errr ... I want to say it was in Captain America, but I was being vague 'cos I can't really remember. I wasn't expecting to be quizzed on it tbh.

 

From my nginx access log

your.ip.address - - [21/Feb/2024:06:53:19 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.2; +https://feddit.de"
your.ip.address - - [21/Feb/2024:06:53:21 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.2; +https://feddit.de"

This was "https://feddit.de/activities/like/19ab3a68-e9ae-4218-8ca2-d8cc885e96f9" being sent twice.

I've reported this problem to other affected servers that I've seen:
the lemmy.ca post suggests the problem was something to do with running multiple containers with the same index number;
the endlesstalk.org post suggests that re-starting the backend containers is a fix
(their answers will likely more sense to you than to me, as I don't run lemmy).

Thanks! (and apologies for this being in English)

 

From my nginx access log:

your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"

2 of the entries are "https://lemmy.sdf.org/activities/like/88bc5b6d-f11f-4245-90aa-908e43befe97" being sent twice,
the other two are "https://lemmy.sdf.org/activities/like/437327e5-a262-46bc-8ce7-1c2c5bd440b3" being sent twice

I've reported this problem to other affected servers that I've seen:
the lemmy.ca post suggests the problem was something to do with running multiple containers with the same index number;
the endlesstalk.org post suggests that re-starting the backend containers is a fix
(their answers will likely more sense to you than to me, as I don't run lemmy).

Thanks!

227
Best we can do right now. (media.mstdn.social)
submitted 9 months ago by freamon to c/[email protected]
 
13
submitted 9 months ago* (last edited 9 months ago) by freamon to c/[email protected]
 

Hi. Just looking at what lemmy.ca sends my server:

From nginx log:

your.ip.address - - [20/Feb/2024:03:48:47 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"               
your.ip.address - - [20/Feb/2024:03:48:49 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"         
your.ip.address - - [20/Feb/2024:03:48:57 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"              

Dumping the JSONs reveals 3 duplicate files, all containing:

"id": "https://lemmy.ca/activities/create/0968bf93-ac05-4178-bf3f-28cdc65fc338"
"actor": "https://lemmy.ca/u/HairyOldCoot"
"object": {
  "id": "https://lemmy.ca/comment/7454502"            
  "content": "That was an episode of Sliders."
  "published": "2024-02-20T03:48:45.810068Z"

These are 3 Creates, not 1 Create and 2 Updates or anything. I've chosen a comment 'cos that's public info, but it's the same for all other activity too (Votes, Deletes, etc).

lemmy.ca isn't alone in this. endlesstalk.org sends everything twice (info posted here), as does lemmy.sdf.org and mander.xyz, but lemmy.ca is the only one I've seen send stuff 3 times. Other instances (e.g. aussie.zone, feddit.nl, lemm.ee, lemmings.world, lemmy.world, programming.dev, reddthat.com, sh.itjust.works, slrpnk.net) don't, but there's nothing obvious like lemmy version numbers to indicate the difference.

Whilst I'd prefer you didn't send me stuff 3 times, I'm mostly mentioning it because I doubt it's good for your own resources to send every activity by every lemmy.ca user out multiple times. Also, the OPs of my community are from Mastodon, so I imagine you're sending them the same message 3 times too ...

6
submitted 9 months ago* (last edited 9 months ago) by freamon to c/issues
 

I just upvoted a comment in a community hosted on my site, and in the nginx log I can see:

ip.address - - [19/Feb/2024:14:33:31 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://endlesstalk.org"
ip.address - - [19/Feb/2024:14:33:43 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://endlesstalk.org"

Dumping out the activity, I can see:

... (single vote from account on another instance) ...                   
{
  "@context": [
    "https://join-lemmy.org/context.json",
    "https://www.w3.org/ns/activitystreams"
  ],
  "id": "https://endlesstalk.org/activities/like/f102d062-dfe9-4ece-96e8-310a09b249ba",
  "actor": "https://endlesstalk.org/u/freamon",
  "object": "https://sh.itjust.works/comment/9061222",
  "type": "Like",
  "audience": "https://lemmon.website/c/tails"
}
... (single vote from account on another instance) ...        
{
  "@context": [
    "https://join-lemmy.org/context.json",
    "https://www.w3.org/ns/activitystreams"
  ],
  "id": "https://endlesstalk.org/activities/like/f102d062-dfe9-4ece-96e8-310a09b249ba",
  "actor": "https://endlesstalk.org/u/freamon",
  "object": "https://sh.itjust.works/comment/9061222",
  "type": "Like",
  "audience": "https://lemmon.website/c/tails"
}
... (single vote from account on another instance) ...        

It's the same for comments too (if I grep the dump for other people's comments, there's only one, but there's two for comments made by me)

EDIT: can also see dupes from lemmy.ca (they actually sent the same Like 3 times).

 
272
Did someone call for IT support? (files.mastodon.social)
submitted 9 months ago by freamon to c/[email protected]
 
 

After 6 years, project 4K80 (the 4K fan-edit of Empire Strikes Back) finally has some release candidates.

The linked post details why it took so long (compared to 4K77 and 4K83), and the plans for the future.

It's something I'll download when they've worked on it a little more. For now though, Adywan's 'The Empire Strikes Back Revisited' remains my favourite version.

 

Given the shared underlying protocol, I didn't like that if I saw something interesting on Mastodon, and wanted to post it on Lemmy, I'd have to screenshot it and/or re-attribute it to me rather than the original author.

Tails is an experimental community. Instead of announcing just what a Lemmy user has posted, it announces what a Fediverse actor has posted. This means that, so far, it's featured posts from Mastodon accounts like Mr Lovenstein, warsandpeas, George Takei, Low Quality Facts, and other interesting people. Lemmy users have been able to reply to the author, and have also replied to those other Mastodon accounts that responded.

You can see for yourself at [email protected]

(the usual rules apply: if you're the first person on your instance to do this, you'll likely get a blank screen or an error. Wait 10 secs or so, press refresh, and you should have it).

11
Lemmy's ActivityPub activities (self.learningrustandlemmy)
submitted 9 months ago* (last edited 9 months ago) by freamon to c/[email protected]
 

I'll reply in the comments with a example of what lemmy sends for each thing you can do (I think I've thought of everything, but you can probably guess the format if not, or I can always add it).

So, the setup for these is:
Our instance is called 'local.com'
Our user is called 'freamon'
The other instance is called 'remote.com'
The community on that instance is called 'interesting'

For many of these, remote.com will receive them, and rewraps them in an Announce to send out to all the other instances with a copy of the community, so everyone stays in sync.

Sort by 'Old' for the best hope of these making sense.
I'll follow this post up with a script, that can be used to send these activities from the command-line, as I think it can help to understand Lemmy if you're using something much simpler than Lemmy to do some of things Lemmy does.

EDIT: As nutomic as mentioned, a better list is in the docs. It's the kind of thing I should read first, I guess.

993
So this is how democracy dies ... (files.mastodon.online)
 
view more: ‹ prev next ›