freamon

joined 1 year ago
MODERATOR OF
[–] freamon@endlesstalk.org 4 points 6 months ago

From his Mastodon, it looks like OP (Cory Doctorow if it’s not showing in whatever app you’re using) is doing talks in Serbia at the same event as Bruce Sterling, so it’s as likely that he wrote the ALT text for the image himself.

[–] freamon@endlesstalk.org 1 points 7 months ago

Just posting to nag you about this: can !tails@lemmon.website be added as an exception to the automod?

[–] freamon@endlesstalk.org 3 points 7 months ago

Lemmy doesn't seem to get much recognition in the wider Fediverse - it tends to get bundled as part of 'other apps'. Mastodon is much bigger, so better integration with Lemmy probably gets deprioritised below their own issues and feature requests (e.g. I was reading today that Markdown support is often requested, but the base version still doesn't have it)

[–] freamon@endlesstalk.org 15 points 7 months ago (3 children)

I don't think it's technically impossible - all the information that another site needs to properly interpret some activity is in the JSON that's sent. I get the sense that it might be unrealistic to expect Mastodon to make the necessary changes though. It seems more of a political issue than a technical one.

[–] freamon@endlesstalk.org 40 points 7 months ago (5 children)

It's partly an issue of keys. Every fediverse actor has a private key and a public key. When my instance sends this to fediverse@lemmy.world, it's signed by my private key, and lemmy.world uses my public key to verify it. When fediverse@lemmy.world sends this comment out, it uses it's own private key to sign it. It can't just re-transmit my comment, because it doesn't have my private key. All it can do is Announce that I've made the comment (and sign the Announce).

Mastodon treats Announces as Boosts, so every post/comment is interpreted as a thing that fediverse@lemmy.world has boosted, so you get all these un-connected posts appearing. I think it's mostly up to Mastodon to remedy.

It works better if a Mastodon actor posts into a Lemmy community, then you get the mix like you imagine. e.g.: https://mastodon.world/@Flash/112095241193510662 (this particular post was crowbarred into Lemmy via !tails@lemmon.website, but it would be the same if the author had done it.)

[–] freamon@endlesstalk.org 2 points 7 months ago (1 children)

I might wait until lemmy 0.19.4 to post more, as I’ll be able to include ALT text in a tag with with picture, rather than dumping it into the post body as an ‘image description’. The problem with the current approach is that more people see it (and potentially respond to it with something snarky) than what was ever intended.

 

PieFed - Explore Anything, Discuss Everything.

[–] freamon@endlesstalk.org 1 points 7 months ago

One of the reasons it's inconsistent is that Lemmy tries to balance the media it serves locally vs. the media it lets remote hosts serve. Also it's a bit naïve about image conversion. So if you link to an actual GIF at giphy.com (for example), it works consistently across the most the most platforms if Lemmy leaves it alone. If it doesn't, it'll bring it in and convert it to a WebM file, which not all clients know what to do with. Even if they do though, looping isn't always on by default for video, so the effect of a GIF that relies on looping might be nullified.

It's probably best to focus on the clients with the biggest user-base, rather than try to target them all. For lemmy.world/c/gifs, the most popular posts have been uploaded to imgur.com - which convert most GIFs to MP4s - and the post's author has linked to the inline version at i.imgur.com.

[–] freamon@endlesstalk.org 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@endlesstalk.org 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@endlesstalk.org 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@endlesstalk.org 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@endlesstalk.org 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.

 

This is probably just me, but I found INSTALL.md to be a bit confusing.

So, for a fresh install of Ubuntu in a Windows Hyper-V VM, this is the list of steps I took to get something that at least looks like it might be the right thing:

remove unattended-upgrades, and clean up after OS install

sudo systemctl stop unattended-upgrades
sudo apt-get purge unattended-upgrades
sudo apt autoremove

install postgresql 16

sudo apt install ca-certificates pkg-config
wget --quiet -O - [https://www.postgresql.org/media/keys/ACCC4CF8.asc](https://www.postgresql.org/media/keys/ACCC4CF8.asc) | sudo apt-key add -
sudo sh -c 'echo "deb [http://apt.postgresql.org/pub/repos/apt/](http://apt.postgresql.org/pub/repos/apt/) $(lsb_release -cs)-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt update
sudo apt install libpq-dev postgresql

install python libs

sudo apt install python3-pip python3-venv python3-dev python3-psycopg2

install redis server

sudo apt install redis-server

install git

sudo apt install git

set up database

sudo -iu postgres psql -c "CREATE USER pyfedi WITH PASSWORD 'pyfedi';"
sudo -iu postgres psql -c "CREATE DATABASE pyfedi WITH OWNER pyfedi;"

clone PieFed

git clone [https://codeberg.org/rimu/pyfedi.git](https://codeberg.org/rimu/pyfedi.git)

cd into pyfedi, set up and enter virtual environment

cd pyfedi
python3 -m venv ./venv
source venv/bin/activate

use pip to install requirements

pip install wheel
pip install -r requirements.txt

edit .env file

cp env.sample .env
nano .env
(change SECRET_KEY to some random sequence of numbers and letters)

initialise database, and set up admin account

flask init-db

run the app

flask run
(open web browser at http://127.0.0.1:5000))
(log in with username and password from admin account)

Maybe this will help someone else (or maybe someone has spotted something that I missed - like I say: it looks right when loaded in a browser, but I'm not 100% sure)

 
 

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)
 
 

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 ...

 

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).

 
 
view more: next ›