Store admin data by frontend on a user
This is just an idea I want to write down, a wishlist future item.
In !2806 (closed) I attempted to add an admin_data, :map
field to users. But then I discovered the existing tag, :array
field would fit my use case.
However, I really love the way pleroma_settings_store
works, especially how it separates frontend configs. I think if we did a user admin_data
field like that, it could have infinite possibilities on the frontend. A few ideas:
- Custom user badges, "Donor", "OG Member", etc.
%{badges: ["donor", "og_member"]}
- Integrations
- You could use AdminAPI to set
admin_data
on users from any script/service/bot you control. - Virtual currency
%{grans: 9001}
- "Awards"
%{awards: ["5 years user", "100 likes"]
- ???
- You could use AdminAPI to set
Edited by Alex Gleason