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

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

narcolepsy and alcoholism :flag: (hj@shigusegubu.club)'s status on Wednesday, 29-Nov-2023 17:44:59 JST

  1. Embed this notice
    narcolepsy and alcoholism :flag: (hj@shigusegubu.club)'s status on Wednesday, 29-Nov-2023 17:44:59 JST narcolepsy and alcoholism :flag: narcolepsy and alcoholism :flag:
    in reply to
    • Sexy Moon
    • lainy
    • NEETzsche
    @NEETzsche @lain @Moon >This isn’t a bug. A bug is a scenario where it doesn’t work. Can you find one of those?

    Here:

    pleroma_dev=# SELECT data->>'object' FROM activities WHERE data->>'type' = 'Listen' ORDER BY inserted_at LIMIT 1;
    ?column?
    ----------------------------------------------------------------------
    https://shitposter.club/objects/13ffa3ec-5114-425d-b6e6-a94091b8805c
    (1 row)
    So I search for the object
    pleroma_dev=# SELECT data FROM objects WHERE data->>'id' = 'https://shitposter.club/objects/13ffa3ec-5114-425d-b6e6-a94091b8805c' ORDER BY inserted_at LIMIT 1;
    and get basically this
    {
    "cc": ...,
    "id": "https://shitposter.club/objects/13ffa3ec-5114-425d-b6e6-a94091b8805c",
    "to": ...,
    "bcc": ...,
    "bto": ...,
    "tag": ...,
    "type": "Audio",
    "actor": "https://shitposter.club/users/Moon",
    "album": "Robotnik YouTube Poops",
    "emoji": {},
    "title": "Getaway Submarine",
    "artist": "iteachvader",
    "context": "https://shitposter.club/contexts/f45cab46-7de1-4386-a281-3bf5814f05c4",
    "summary": "",
    "published": "2023-11-12T22:19:16.655693Z",
    "attachment": ...,
    "attributedTo": "https://shitposter.club/users/Moon"
    }
    So I was wrong about it not being ingested, at least that is clear, however case for URLs and collision with actual Audio document still exists.

    Let's query Audio documents
    pleroma_dev=# SELECT data FROM objects WHERE data->>'type' = 'Audio' ORDER BY inserted_at LIMIT 1;
    {
    "cc": ...,
    "id": "https://open.audio/federation/music/uploads/0ce93b9d-deb9-426a-86f5-cdf4b18dd42e",
    "to": ...,
    "bcc": ...,
    "bto": ...,
    "tag": ...,
    "url": "https://open.audio/library/tracks/111688",
    "name": "#25 Ende Gelände gegen Erdgas",
    "type": "Audio",
    "actor": "https://open.audio/federation/actors/endegelaende",
    "emoji": {},
    "likes": ...,
    "content": "<p>Unter dem Motto \"Sauberes Erdgas ist eine dreckige Lüge\" ruft Ende Gelände vom 29.7. bis 2.8. zu Blockaden der Erdgasinfrastruktur in Brunsbüttel und Hamburg auf. Denn in Brunsbüttel soll ein neues LNG-Terminal gebaut werden, das wirklich niemand braucht, außer die fossile (Fracking-)Industrie und unser Lieblings-Sozi Olaf Scholz. Wir sprechen mit Fabian von der TU Berlin und Luisa von Ende Gelände über Erdgas, die geplante Aktion und was der Fokus Erdgas für Ende Gelände bedeutet.</p><p>Einige der Studien, die Fabian nennt, findet ihr hier zitiert: <a href=\"https://de.scientists4future.org/erdgas-brueckentechnologie-oder-risiko-fuer-die-energiewende/\">https://de.scientists4future.org/erdgas-brueckentechnologie-oder-risiko-fuer-die-energiewende/</a></p>",
    "context": "https://shigusegubu.club/contexts/7bd1f36b-1d9e-4ad4-90b0-068f79b7929d",
    "summary": "#anticapitalism #climate #coal #Ende #Gelände #justice #Klimagerechtigkeit #Kohle",
    "inReplyTo": null,
    "published": "2021-07-12T09:53:29.707409Z",
    "sensitive": false,
    "attachment": ...,
    "context_id": 50727800,
    "like_count": 0,
    "attributedTo": "https://open.audio/federation/actors/endegelaende",
    "announcements": ...,
    "replies_count": 0,
    "announcement_count": 1
    }
    So now if we merge your url MRs, if I submit a scrobble with url "https://open.audio/library/tracks/111688"

    This query will yield two (or more) results:
    SELECT data FROM objects WHERE data->>'type' = 'Audio' AND data->>'url' = 'https://open.audio/library/tracks/111688' ORDER BY inserted_at;
    If it does not add duplicate entries with same URL then there should be a way to have a "placeholder" data that gets updated with "real" data, however as far as database is concerned neither of those are "fake" so you'll have somehow distinguish between real and fake, and hope that funkwhale doesn't add "title" property that will make real look like fake.

    P.S. had to redact some of the JSON becase BBCode doesn't like it.
    In conversation Wednesday, 29-Nov-2023 17:44:59 JST from gnusocial.jp permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: static.banky.club
      Beyond Your Comprehension (@Moon@shitposter.club)
      I just want to make friends on here. Anybody can interact with me. I am done making joke bios, they caused too much trouble.

    2. No result found on File_thumbnail lookup.
      Shitposter Club

    3. Domain not in remote thumbnail source whitelist: s3.eu-central-2.wasabisys.com
      #25 Ende Gelände gegen Erdgas by Ende Gelände - Der Podcast
      from Ende Gelände - Der Podcast
      Ende Gelände - Der Podcast - Ende Gelände Podcast - #25 Ende Gelände gegen Erdgas

    4. No result found on File_thumbnail lookup.
      Ausbau der Erdgas-Infrastruktur: Brückentechnologie oder Risiko für die Energiewende? - S4F Deutschland
      from S4F Redaktion
      Erdgas ist keine Brückentechnologie in eine fossilfreie Zukunft. Der Ausbau von Erdgas-Infrastruktur birgt finanzielle Risiken und verzögert die geplante Energiewende.
    5. No result found on File_thumbnail lookup.
      シグセグV

Feeds

  • Activity Streams
  • 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.