Drupal now showing up after FediDB.org refresh, but missing data

Created on 9 May 2025, about 1 month ago

Problem/Motivation

https://fedidb.com/software?st=active&q=Drupal&software=drupal shows only 10 servers, 14 accounts and 0 MAU.

I know that we don't want to "lie" about MAU like https://fedidb.com/software?st=active&q=Wordpress&software=wordpress where the MAU = total number of users who have logged into the WP instance regarless of whether the post, but something is obviously wrong with the way this number is being calculated.

Proposed resolution

I'm not entirely sure how behind works, but if someone can clarify I can put some time into a PR.

I believe FediDB is using the information in the .well-known/nodeinfo file to route its bot to.

https://portside.org/.well-known/nodeinfo points to https://portside.org/nodeinfo/content which returns...

{"version":"2.0","openRegistrations":false,"software":{"name":"drupal","version":"1.0.1"},"services":{"inbound":[],"outbound":[]},"protocols":["activitypub"],"usage":{"users":{"total":"1"},"localPosts":2448}}

Compare the with what a WP site like https://vivaldi.com/.well-known/nodeinfo and what it returns from https://vivaldi.com/wp-json/activitypub/1.0/nodeinfo/2.0

https://fedidb.com/resources/data-sources has some information about how the project collects data, but I am not an expert in the ActivityPub standards by any means.

Am I on the right track?

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kreynen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kreynen
  • πŸ‡§πŸ‡ͺBelgium swentel

    More info can be added in ActivityPubUtility::alterNodeInfo

    Question is of course: how do we define MAU: unique users who have posted something? That could work for me.

    While we're at it: maybe we should change the name of the software and the version too (but not the Drupal version, I don't want to expose any Drupal version which might be vulnerable).

  • πŸ‡ΊπŸ‡ΈUnited States mradcliffe USA

    In my implementation, I am using status = 1, uid > 0, and access comparisons so I can get a quick query.

    For activitypub module, I think that joining to the actor table by uid makes sense. I don't think it should include the non-person actors in "users".

    Aside, the Drupal activitypub module listing is probably going to disappear again. aleixq's changes got removed in https://github.com/fedidb/communityDB/commit/ce23a1bd1956f0c2788d4755869...

  • πŸ‡ΊπŸ‡ΈUnited States kreynen

    > MAU: unique users who have posted something?

    That makes sense to me. When I initial saw the level of federated activity and MAU from WP instances, I was really impressed... but as I dug into the data I realized they were just dumping everything that had been in the site's RSS feed into ActivityPub. WP users not only had no idea they were now discoverable, they had no way to interact with their ActivityPub Inbox within the WP instance.

    WP's implementation is FINO (Federation in Name Only).

    If I was trying to provide accurate MUA counts in WP or Drupal, I would only count the authors of the posts in the nodeinfo. It would make sense include the author of comments if those were actually federated, but I can't find any instances doing that. So if a Drupal instance has published 10 nodes in the last month, the maximum MUA would be 10.

Production build 0.71.5 2024