nmtake

joined 2 years ago
[–] [email protected] 2 points 1 month ago (1 children)

If anyone has other suggestions to mitigate this

Firefox has "permissions.default.image" (link) option that disables image loading, but this Wikipage is very old so I'm not sure whether it works properly in current FIrefox.

[–] [email protected] 11 points 5 months ago (1 children)

Yes, they started the restriction a year ago. For a future reference, here's the announcement about the restriction (written in Japanese): https://support.misskey.io/hc/ja/articles/7604557294607

[–] [email protected] 3 points 5 months ago

I think it doesn't work. I skimmed Lemmy source code (search scrape_text_for_mentions if you're interested) and found this issue so I'm almost sure the mention in the post body doesn't work, but haven't tested, so I used the word may. Sorry for your confusion.

[–] [email protected] 1 points 5 months ago (3 children)

FYI username mention in a post body (not in a comment) may not work.

[–] [email protected] 1 points 6 months ago

Thanks for writing the summary for the current image-proxying related issues. I prefer the "proxying images route" for better privacy, but its drawbacks sounds worse.

If Lemmy has a user-customizable setting like "Don't load external media automatically" (including images, videos, etc.), I'm happy with the "passing through external images" route.

[–] [email protected] 1 points 6 months ago

Yes, fenced code block with specifying langauge may work as a workaround.

```text
systemctl --user cat emacs
```

but I said "inline" explicitly.

[–] [email protected] 2 points 6 months ago (2 children)

lemmy-ui: Highlighting some words blindly in inline code is really annoying. For example,

  • systemctl --user cat emacs
  • pactl load-module module-switch-on-connect
[–] [email protected] 8 points 6 months ago

Since it's a MediaWiki page you can get Markdown source of the page with appending action=raw query to the URL.

[–] [email protected] 10 points 1 year ago* (last edited 1 year ago) (1 children)

Strong focus on privacy and security (all authentication with the Lemmy API is done through secure httpOnly cookies, user IP addresses are not leaked to external image hosts, etc)

Awesome. The current lemmy-ui sends a lot of traffic to other Lemmy instances to get pictrs-cached images, so this is huge improvement. On the other hand, on next.lemm.ee those requests seems to be gone. As feedback, I noticed this page still seems to send a request to imgur, ~~and the text is difficult to read because of the low-contrast theme.~~ (edit: fixed and now completely readable. thank you @[email protected] )

[–] [email protected] 1 points 1 year ago

Lemmyでのアナウンス

Lemmyのニッチなコミュニティ向けの連携してくれるといいなーとか思ってます
Redditにもあったんですけどあれはあまり作りこむ気がなかったみたいで…

 

Thorough report about the recent Fediverse spam.

Related posts:

[–] [email protected] 2 points 1 year ago

Glad it worked. I didn't know the endpoint before reading your post.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (2 children)

As you said, GET /resolove_object (https://join-lemmy.org/api/interfaces/ResolveObject.html) may work:

$ post_id=9589178
$ curl 'https://lemm.ee/api/v3/resolve_object?q=https%3A%2F%2Fprogramming.dev%2Fpost%2F${post_id}' | jq .post.post.id
22873872
$ curl 'https://lemm.ee/api/v3/post?id=22873872' | jq '.post_view.post | [.id, .name]'
[
  22873872,
  "How do you get the url or id of the same post on a different instance?"
]
 

The library has a nice guide and two working examples, so I tried the local_federation example. To build the example, you need Rust compiler, cargo package manager, and git:

$ git clone https://github.com/LemmyNet/activitypub-federation-rust
$ cd activitypub-federation-rust
$ cargo run --example local_federation axum
[INFO  local_federation] Start with parameter `axum` or `actix-web` to select the webserver
[INFO  local_federation::axum::http] Listening with axum on localhost:8001
[INFO  local_federation::axum::http] Listening with axum on localhost:8002
[INFO  local_federation] Local instances started
[INFO  local_federation] Alpha user follows beta user via webfinger
[INFO  activitypub_federation::fetch] Fetching remote object http://localhost:8002/.well-known/webfinger?resource=acct:beta@localhost:8002
[INFO  activitypub_federation::fetch] Fetching remote object http://localhost:8002/beta
[INFO  activitypub_federation::fetch] Fetching remote object http://localhost:8001/alpha
[INFO  local_federation] Follow was successful
[INFO  local_federation] Beta sends a post to its followers
[INFO  local_federation] Alpha received post: Hello world!
[INFO  local_federation] Test completed

You may want to use network analizyer (e.g, wireshark) to see how it works under the hood.

GET /.well-known/webfinger?resource=acct:beta@localhost:8002 HTTP/1.1
accept: application/jrd+json
digest: SHA-256=[redacted]
signature: keyId="http://localhost:8001/#main-key",algorithm="hs2019",[...]
host: localhost:8002

HTTP/1.1 200 OK
content-type: application/json
content-length: 269
date: Sat, 03 Feb 2024 23:05:19 GMT

{
  "subject": "acct:beta@localhost:8002",
  "links": [
    {
      "rel": "http://webfinger.net/rel/profile-page",
      "type": "text/html",
      "href": "http://localhost:8002/beta",
      "template": null
    },
    {
      "rel": "self",
      "type": "application/activity+json",
      "href": "http://localhost:8002/beta",
      "template": null
    }
  ]
}

[...]
 

One of the best live version I believe.

view more: next ›