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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    NEETzsche (neetzsche@iddqd.social)'s status on Wednesday, 29-Nov-2023 11:51:46 JSTNEETzscheNEETzsche
    in reply to
    • Sexy Moon
    • lainy
    • narcolepsy and alcoholism :flag:

    >easy. Audio document you as referring to in Listen activity isn’t ingested and isn’t stored.

    No, the Listen activity is stored and it is ingested. Read the code:

    # ./lib/pleroma/web/pleroma_api/controllers/scrobble_controller.ex line 37 def index(%{assigns: %{user: reading_user}} = conn, %{id: id} = params) do with %User{} = user <- User.get_cached_by_nickname_or_id(id, for: reading_user) do params = Map.put(params, :type, ["Listen"]) activities = ActivityPub.fetch_user_abstract_activities(user, reading_user, params)

    Not only that, but you can verify that it’s ingested and stored in the database with the following query:

    SELECT * FROM activities WHERE data->>'type' = 'Listen' ORDER BY inserted_at LIMIT 1;

    This returns an id that links to the original document, which is retrieved. You can’t retrieve that which is not stored.

    This isn’t a bug. A bug is a scenario where it doesn’t work. Can you find one of those?

    In conversationWednesday, 29-Nov-2023 11:51:46 JST from iddqd.socialpermalink

    Attachments


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