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
    Jake (formerly sjw) :lain_sneed: (j@bae.st)'s status on Friday, 13-Sep-2024 05:16:42 JST Jake (formerly sjw) :lain_sneed: Jake (formerly sjw) :lain_sneed:
    • Haelwenn /элвэн/ :triskell:
    • narcolepsy and alcoholism :flag:
    @lanodan @hj what would be the postgres query to export a user's followers?
    In conversation Friday, 13-Sep-2024 05:16:42 JST from bae.st permalink
    • Embed this notice
      :blank: (i@declin.eu)'s status on Friday, 13-Sep-2024 05:16:28 JST :blank: :blank:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • shitpisscum
      @j @shitpisscum @lanodan @hj psql | xargs -n 16 cp -t dest ... to do it in smaller batches, or psql | xargs -I AAA cp AAA dest/ to do one file at a time

      or readline, or any other for loop, but bash substitution
      In conversation Friday, 13-Sep-2024 05:16:28 JST permalink
    • Embed this notice
      Jake (formerly sjw) :lain_sneed: (j@bae.st)'s status on Friday, 13-Sep-2024 05:16:29 JST Jake (formerly sjw) :lain_sneed: Jake (formerly sjw) :lain_sneed:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • :blank:
      • shitpisscum

      @i @shitpisscum @lanodan @hj now isn't this some shit?

      How can I tie split into this to make it work?


      Screenshot_20240912-102611~2.png
      In conversation Friday, 13-Sep-2024 05:16:29 JST permalink

      Attachments


      1. https://bae.st/media/261d3f5e98d3df0a7634d586f70b79b3ab3e92c69673f077289eae7470685cf9.png?name=Screenshot_20240912-102611~2.png
    • Embed this notice
      :blank: (i@declin.eu)'s status on Friday, 13-Sep-2024 05:16:30 JST :blank: :blank:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • shitpisscum
      @j @shitpisscum @lanodan @hj select split_part(upload->>'href','/', 5) from (select jsonb_array_elements(data->'url') as upload from objects where data->>'actor' = (select ap_id from users where nickname = 'CHANGEME')) where upload->>'type' = 'Link';
      In conversation Friday, 13-Sep-2024 05:16:30 JST permalink
    • Embed this notice
      Jake (formerly sjw) :lain_sneed: (j@bae.st)'s status on Friday, 13-Sep-2024 05:16:31 JST Jake (formerly sjw) :lain_sneed: Jake (formerly sjw) :lain_sneed:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • :blank:
      • shitpisscum
      @shitpisscum @i @lanodan @hj what about to get a list of all the files uploaded by a user so I can hard link them in a directory and then tar them up?
      In conversation Friday, 13-Sep-2024 05:16:31 JST permalink
    • Embed this notice
      shitpisscum (shitpisscum@mrhands.horse)'s status on Friday, 13-Sep-2024 05:16:32 JST shitpisscum shitpisscum
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • :blank:
      @i @j @lanodan @hj
      >easier to run two queries
      Why not just union these queries?

      select concat(nickname, '@bae.st')
      from users
      join (
      select following_id
      from following_relationships
      where follower_id = (
      select id
      from users
      where nickname = 'CHANGEME'
      )
      ) as _user on users.id = _user.following_id
      where users.local = 't'
      union
      select nickname
      from users
      join (
      select following_id
      from following_relationships
      where follower_id = (
      select id
      from users
      where nickname = 'CHANGEME'
      )
      ) as _user on users.id = _user.following_id
      where users.local = 'f';
      In conversation Friday, 13-Sep-2024 05:16:32 JST permalink

      Attachments



    • Embed this notice
      :blank: (i@declin.eu)'s status on Friday, 13-Sep-2024 05:16:34 JST :blank: :blank:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      @j @lanodan @hj probably easier to run two queries than complicate the sql futher

      select concat(nickname, '@bae.st') from users join (select following_id from following_relationships where follower_id = (select id from users where nickname = 'CHANGEME')) as _user on users.id = _user.following_id where users.local = 't';
      select nickname from users join (select following_id from following_relationships where follower_id = (select id from users where nickname = 'CHANGEME')) as _user on users.id = _user.following_id where users.local = 'f';
      In conversation Friday, 13-Sep-2024 05:16:34 JST permalink

      Attachments



    • Embed this notice
      Jake (formerly sjw) :lain_sneed: (j@bae.st)'s status on Friday, 13-Sep-2024 05:16:35 JST Jake (formerly sjw) :lain_sneed: Jake (formerly sjw) :lain_sneed:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • :blank:
      @i @lanodan @hj how can I make it add the @domain.tld to local accounts so it can be imported on other servers?
      In conversation Friday, 13-Sep-2024 05:16:35 JST permalink
    • Embed this notice
      :blank: (i@declin.eu)'s status on Friday, 13-Sep-2024 05:16:36 JST :blank: :blank:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      @j @lanodan @hj select nickname instead of ap_id and csv import will work
      In conversation Friday, 13-Sep-2024 05:16:36 JST permalink
    • Embed this notice
      Jake (formerly sjw) :lain_sneed: (j@bae.st)'s status on Friday, 13-Sep-2024 05:16:37 JST Jake (formerly sjw) :lain_sneed: Jake (formerly sjw) :lain_sneed:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • :blank:
      @i @hj @lanodan wait can this resulting list be able to be imported in pleroma setting? That's what I need. Pleroma can't do more than 1 page so I have to pull it for people from the database directly so they can import it on other servers.
      In conversation Friday, 13-Sep-2024 05:16:37 JST permalink
    • Embed this notice
      Jake (formerly sjw) :lain_sneed: (j@bae.st)'s status on Friday, 13-Sep-2024 05:16:38 JST Jake (formerly sjw) :lain_sneed: Jake (formerly sjw) :lain_sneed:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • :blank:
      @i @lanodan @hj thank you
      In conversation Friday, 13-Sep-2024 05:16:38 JST permalink
    • Embed this notice
      :blank: (i@declin.eu)'s status on Friday, 13-Sep-2024 05:16:39 JST :blank: :blank:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      @j @lanodan @hj single quote ' not double " quote for sql
      In conversation Friday, 13-Sep-2024 05:16:39 JST permalink
    • Embed this notice
      Jake (formerly sjw) :lain_sneed: (j@bae.st)'s status on Friday, 13-Sep-2024 05:16:40 JST Jake (formerly sjw) :lain_sneed: Jake (formerly sjw) :lain_sneed:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • :blank:

      @i @lanodan @hj I just got

      ERROR: column "nepiant" does not exist

      In conversation Friday, 13-Sep-2024 05:16:40 JST permalink
    • Embed this notice
      :blank: (i@declin.eu)'s status on Friday, 13-Sep-2024 05:16:41 JST :blank: :blank:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      @j @lanodan @hj this

      select ap_id from users join (select following_id from following_relationships where follower_id = (select id from users where nickname = 'CHANGE ME')) as _user on users.id = _user.following_id;
      In conversation Friday, 13-Sep-2024 05:16:41 JST permalink

      Attachments


    • Embed this notice
      pistolero (p@fsebugoutzone.org)'s status on Thursday, 03-Oct-2024 22:52:09 JST pistolero pistolero
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • narcolepsy and alcoholism :flag:
      • :blank:
      @i @j @hj @lanodan What I do is just pipe it through awk.

      psql -q -A -t -f query | '$0!~/@/{print $0 "@bae.st";next} 1;' > x.csv
      In conversation about a year ago permalink
      Another Linux Walt Alt likes this.

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.