Skip to content

instance.admin.(email for example) returns the last user created #18

@diligiant

Description

@diligiant

Hi,

That's probably a "gorm magic" issue and I really have no idea how to solve it. Check my test server (https://none.com/api/v1/instance/). You'll see that email, contact_account is myself although the serializer processes the i.Admin (admin@).
When I check instances and accounts in Mariadb, this confirms that it holds the right info (see below).

Any hint/solution would be great.

thank you.

Frédéric

select admin_id from instances;
+--------------------+
| admin_id           |
+--------------------+
| 109694405584505771 |
+--------------------+
select id, actor_id, email from accounts;
+--------------------+--------------------+--------------------+
| id                 | actor_id           | email              |
+--------------------+--------------------+--------------------+
| 109694405584505771 | 109694405584200435 | xmaster@none.net   |
select id,name from actors where id=109694405584200435;
+--------------------+-------+
| id                 | name  |
+--------------------+-------+
| 109694405584200435 | admin |
+--------------------+-------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions