GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:11:36 JST Evan Prodromou Evan Prodromou

    Hey, all. I need some Web programming help.

    As some of you know, the URL form of our Webfinger handles here on the Fediverse use the prefix `acct`, like `acct:evan@cosocial.ca`.

    https://datatracker.ietf.org/doc/html/rfc7565

    In conversation Sunday, 24-Nov-2024 00:11:36 JST from cosocial.ca permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      http://help.As/
    2. Domain not in remote thumbnail source whitelist: www.ietf.org
      RFC 7565: The 'acct' URI Scheme
      from Peter Saint-Andre
      This document defines the 'acct' Uniform Resource Identifier (URI) scheme as a way to identify a user's account at a service provider, irrespective of the particular protocols that can be used to interact with the account.
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:13:38 JST Evan Prodromou Evan Prodromou
      in reply to

      It would be great to have Web apps that can accept `acct` URLs as input and show you the information about that Fediverse account. So if you link to someone with their Webfinger handle, clicking it would take you to your Mastodon client or a dedicated app just for reviewing these accounts.

      There's a cool feature called `registerProtocolHandler` in Web browsers that makes this possible.

      https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler

      In conversation Sunday, 24-Nov-2024 00:13:38 JST permalink
      Tim Chambers repeated this.
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:16:07 JST Evan Prodromou Evan Prodromou
      in reply to

      Unfortunately, `acct` is not one of the prefixes that can be used that way. I'd like to ask the WHATWG to add it to the list of protocols that can be used, but I wanted to have a demonstration app first that would show it. So, I made a site to test out the registration. I couldn't use `acct`, so I made it work with `web+acct`, which is how you can work with protocols not on the allow list.

      https://github.com/social-web-foundation/acct-handler

      In conversation Sunday, 24-Nov-2024 00:16:07 JST permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:17:06 JST Evan Prodromou Evan Prodromou
      in reply to

      I was able to get the functionality working OK, but not great. I'd like to have a better interface, but it will pull a Webfinger account and show your profile information.

      In conversation Sunday, 24-Nov-2024 00:17:06 JST permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:21:24 JST Evan Prodromou Evan Prodromou
      in reply to

      Unfortunately, the demo Web site that this code runs on was up for like 36 hours before I started getting this scary message in Chrome.

      In conversation Sunday, 24-Nov-2024 00:21:24 JST permalink

      Attachments


      1. https://media.cosocial.ca/media_attachments/files/113/532/943/705/562/402/original/d1c317d58781869b.png
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:22:35 JST Evan Prodromou Evan Prodromou
      in reply to

      It's still possible to get there, I guess.

      If you'd like to see, you can click here. I'd recommend using an incognito window or something, just to be sure. Don't click links with security warnings just because someone asks you to nicely!

      https://acct.swf.pub/#web+acct:evan@cosocial.ca

      In conversation Sunday, 24-Nov-2024 00:22:35 JST permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:26:50 JST Evan Prodromou Evan Prodromou
      in reply to

      Anyway, the only two things exceptional about this site are that it fetches Webfinger and ActivityPub data (not that exceptional) and that it uses `registerProtocolHandler`.

      I would like to know how to use that feature without going to Chrome jail.

      In conversation Sunday, 24-Nov-2024 00:26:50 JST permalink

      Attachments


      1. https://media.cosocial.ca/media_attachments/files/113/532/966/506/249/337/original/4f45529eec2bccab.jpg
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:33:54 JST Evan Prodromou Evan Prodromou
      in reply to

      I registered with Google Search Console for *.swf.pub, and it tells me there's a security issue.

      "Detected issues: Deceptive pages. These pages attempt to trick users into doing something dangerous, such as installing unwanted software or revealing personal information."

      There's a link to a description here:

      https://support.google.com/webmasters/answer/9044101#zippy=%2Cdeceptive-pages

      In conversation Sunday, 24-Nov-2024 00:33:54 JST permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:36:57 JST Evan Prodromou Evan Prodromou
      in reply to

      I don't know if this feature is going to work if every Fediverse service will need to go through a security audit to allow handling a protocol.

      Anyway, I think I'm going to work on the presentation so it at least looks better, then get a security audit. Hopefully it becomes less of a scary minefield.

      In conversation Sunday, 24-Nov-2024 00:36:57 JST permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:39:59 JST Evan Prodromou Evan Prodromou
      in reply to
      • Seth :rebel: :fist_raised: ⁂

      @seth False positive. It's an example Web app with like 200 lines of code.

      In conversation Sunday, 24-Nov-2024 00:39:59 JST permalink
    • Embed this notice
      Seth :rebel: :fist_raised: ⁂ (seth@socl.bz)'s status on Sunday, 24-Nov-2024 00:40:00 JST Seth :rebel: :fist_raised: ⁂ Seth :rebel: :fist_raised: ⁂
      in reply to

      @evan is it a false positive? Or did you find that a hacker was in there?

      In conversation Sunday, 24-Nov-2024 00:40:00 JST permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 00:42:24 JST Evan Prodromou Evan Prodromou
      in reply to
      • Tony Hoyle

      @tony Yeah, I need to figure out a way around CORS. It's all running in the browser right now, so the fetch() call is failing on your site. I think the "right" thing to do is to proxy a call through a back-end server, but that would mean a lot more work for this teensy demo.

      In conversation Sunday, 24-Nov-2024 00:42:24 JST permalink
    • Embed this notice
      Tony Hoyle (tony@toot.hoyle.me.uk)'s status on Sunday, 24-Nov-2024 00:42:25 JST Tony Hoyle Tony Hoyle
      in reply to

      @evan web+act links are url encoded on opening eg. https://acct.swf.pub/#web%2Bacct%3Aevan%40cosocial.ca

      Which just returns a blank page.

      Only chrome thinks it's dangerous though.. Firefox works.

      In my username it just says 'failed to fetch' but maybe I'm expecting too much of an example :p

      In conversation Sunday, 24-Nov-2024 00:42:25 JST permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        works.in - このウェブサイトは販売用です! - Works リソースおよび情報
        このウェブサイトは販売用です! works.in は、あなたがお探しの情報の全ての最新かつ最適なソースです。一般トピックからここから検索できる内容は、works.inが全てとなります。あなたがお探しの内容が見つかることを願っています!
      2. No result found on File_thumbnail lookup.
        Account Handler
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 01:11:56 JST Evan Prodromou Evan Prodromou
      in reply to

      @mradcliffe Nice to know!

      In conversation Sunday, 24-Nov-2024 01:11:56 JST permalink
    • Embed this notice
      mradcliffe (mradcliffe (he/him)@nokoto.org)'s status on Sunday, 24-Nov-2024 01:11:58 JST mradcliffe mradcliffe
      in reply to

      fetch can be used without CORS setting mode to "no-cors", which should work for a GET, but may get rejected by the server, @evan.

      const response = await fetch('https://example.com/.well-known/webfinger?resource=acct:example@example.com', {mode: 'no-cors',});

       

      More
      In conversation Sunday, 24-Nov-2024 01:11:58 JST permalink

      Attachments


    • Embed this notice
      Rui Seabra (ruiseabra@mastodon.social)'s status on Sunday, 24-Nov-2024 03:02:34 JST Rui Seabra Rui Seabra
      in reply to

      @evan
      Why are you trying to deceive innocent bystanders into running shockwave flash crapware? You should be flogged severely, I says! 🤪

      In conversation Sunday, 24-Nov-2024 03:02:34 JST permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Sunday, 24-Nov-2024 04:19:08 JST Evan Prodromou Evan Prodromou
      in reply to
      • Rui Seabra

      @RuiSeabra lol, that might be it!

      In conversation Sunday, 24-Nov-2024 04:19:08 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.