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
    :blank: (i@declin.eu)'s status on Monday, 05-Jun-2023 08:36:53 JST :blank: :blank:
    in reply to
    • pistolero :thispersondoesnotexist:
    • Sexy Moon
    • Your New Marijuana Injecting Waifu :weed:
    • Alex Gleason
    • l:3nya
    @l @sjw @p @Moon definitely, the code to hack is
    https://git.pleroma.social/pleroma/pleroma/-/blob/e8d35256653d196fd7c0daba8673a74dfe40a8e8/lib/pleroma/web/activity_pub/activity_pub.ex#L664

    the simplest way would be to fetch activities from the DB as normal
    and then if there's not enough activities
    fire off a GET /api/v1/accounts/:id/statuses request to their instance, iterate with Pleroma.Object.Fetcher.fetch_object_from_id(id)
    and redo the DB query

    figuring out the max_id=pagination might be a bit complicated though, the id's being snowflake<time,rand> might make up for it though

    @alex thoughts?
    In conversation Monday, 05-Jun-2023 08:36:53 JST from declin.eu permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: git.pleroma.social
      lib/pleroma/web/activity_pub/activity_pub.ex · e8d35256653d196fd7c0daba8673a74dfe40a8e8 · Pleroma / pleroma · GitLab
      Pleroma backend
    • Embed this notice
      l:3nya (l@a.awootism.club)'s status on Monday, 05-Jun-2023 08:37:00 JST l:3nya l:3nya
      in reply to
      • pistolero :thispersondoesnotexist:
      • Sexy Moon
      • Your New Marijuana Injecting Waifu :weed:
      @i @sjw @p @Moon javascript will only work for web clients. but there's also mobiles.

      it should be possible to modify akkoma to make it load posts for foreign users on a fly. at least i think so. for me it's a little weird that it isn't implemented already. i don't know details of the implementation tho. (i will check pleroma/akkoma issues someday, maybe it was already proposed)
      In conversation Monday, 05-Jun-2023 08:37:00 JST permalink
    • Embed this notice
      :blank: (i@declin.eu)'s status on Monday, 05-Jun-2023 08:37:01 JST :blank: :blank:
      in reply to
      • pistolero :thispersondoesnotexist:
      • Sexy Moon
      • Your New Marijuana Injecting Waifu :weed:
      • l:3nya
      @l @sjw @p @Moon yeah activitypub isn't quite friendly when it comes to sharing posts

      you could limit it to post made in the last week, or a set number for each user just to get a taste
      your instance will accrue tons of posts either way

      but the idea of backfilling them on demand is a bit more complicated
      as there's no mastoapi for it, and pleroma-fe would not know of it
      you could probably hack with with a *monkey user javacript
      but that's outside of my knowledge
      In conversation Monday, 05-Jun-2023 08:37:01 JST permalink
    • Embed this notice
      l:3nya (l@a.awootism.club)'s status on Monday, 05-Jun-2023 08:37:02 JST l:3nya l:3nya
      in reply to
      • pistolero :thispersondoesnotexist:
      • Sexy Moon
      • Your New Marijuana Injecting Waifu :weed:
      @i @sjw @p @Moon the thing with backfilling is complicated af. some users may have thousands of posts and if we take a lot of users db is gonna get crazy as i understand.

      and i haven't come to any good solution to select which users to backfill. if we take all the users followed from the instance, then, again, it will be a crazy amount of posts. idk if its possible to backfill 'in real time'. like, when the user from the instance scrolls a user from another instance, it automatically gets posts from it. and you don't need to go to other instance's site.

      so i am not sure about backfilling.
      In conversation Monday, 05-Jun-2023 08:37:02 JST permalink
    • Embed this notice
      :blank: (i@declin.eu)'s status on Monday, 05-Jun-2023 08:37:03 JST :blank: :blank:
      in reply to
      • pistolero :thispersondoesnotexist:
      • Sexy Moon
      • Your New Marijuana Injecting Waifu :weed:
      • l:3nya
      @l @Moon @p @sjw whoops, wrong article

      https://blog.soykaf.com/post/how-federation-works/

      also that backfill tool sounds fun enough to make, want it done?
      In conversation Monday, 05-Jun-2023 08:37:03 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: images.unsplash.com
        How Federation Works
        or: Why is my Federated Timeline empty?
    • Embed this notice
      :blank: (i@declin.eu)'s status on Monday, 05-Jun-2023 08:37:04 JST :blank: :blank:
      in reply to
      • pistolero :thispersondoesnotexist:
      • Sexy Moon
      • Your New Marijuana Injecting Waifu :weed:
      • l:3nya
      @l @sjw @p @Moon the trick is that pleroma comes with a /relay by default, and it's not too hard to scrape them from /api/v1/instance/peers

      you probably already have instances in mind you want to follow
      if you do not here's a thread were i post 2k relays with instructions

      https://declin.eu/notice/AWDxxJ0r6SlAEZxF0i


      as for federation, activitypub only works on follows, and fetching objects interacted by the people your instance follows
      for details see https://blog.soykaf.com/post/activity-pub-in-pleroma/

      there's also no tool made to backfill, but it should be possible
      you'd have to scrape the post url's of the instances/people you want
      and then fetch it via search, or script it more directly with a mix/iex task
      looping over that through Pleroma.Object.Fetcher.fetch_object_from_id(id)
      In conversation Monday, 05-Jun-2023 08:37:04 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: declin.eu
        🥀 (@i@declin.eu)
        @nukie @pernia @voltrina @p @graf @graf @mint @Moon @waifu you need to add them yourself here's mine https://social.vdheide.net/relay https://fedi.cat-enby.club/relay https://blab.gg/relay https:...
      2. Domain not in remote thumbnail source whitelist: blog.soykaf.com
        ActivityPub in Pleroma
        Implementing ActivityPub in Pleroma
    • Embed this notice
      l:3nya (l@a.awootism.club)'s status on Monday, 05-Jun-2023 08:37:05 JST l:3nya l:3nya
      • pistolero :thispersondoesnotexist:
      • Sexy Moon
      • Your New Marijuana Injecting Waifu :weed:
      hey instance admins how do i improve federation at my instance? is there some good articles about it?

      i know i can sub to relays and follow a shitton accounts manually. i've already subbed to all relays i found and some instance-specific relays, but it sucks.

      also, i dislike opening profiles and seeing them empty. is there some good ways to implement automatic backfilling?

      @p @Moon @sjw (idk who else to mention)
      In conversation Monday, 05-Jun-2023 08:37:05 JST permalink

      Attachments


      1. https://medya.awootism.club/media/8caf2ffc823011086c707f38d047d1880d47423897ca26047d0f078722a32ad1.jpg

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.