Support the "account-type" #15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since the last versions we can define an account type (Person, Organization, News, Community). It would be good if the directory could support this.
Is there any specific rules depending on the account type? Or is it just about displaying the type?
It would be good to have it as an addition to the current separation in "All", "People" and "Forums".
So there would be now: "All", "People", "Organizations", "News accounts" and "Forums".
Ok, this is exactly what I had in mind, thanks for the clarification.
Great! If you need some help in providing the data for the directory, then just tell me. I'm not sure how it is currently exposed. I know that it is transferred via DFRN and I have in mind that it is distributed via POCO as well.
I'm in the process of entirely rewriting the directory code as a personal exercise in Dependency Injection, so I will get the chance to look at the noscrape output from Friendica and store any field that wasn't handled before.
If there's no output of the account-type, then now is a good time to add it on the Friendica side.
Normally we should export it since several versions, but I don't know where.
There's only a
comm
unity flag in the noscrape output whether the account is a personal account or a forum.See https://friendica.mrpetovan.com/noscrape/hypolite
No, we really should transmit the other type in some way.
Be my guest, I'm going to prepare a free-form text field for the account type in the new directory data structure. For now it's going to be either "People" or "Forum" but it will accept any new string seamlessly.
Some more strict field content would be better, since I guess it would be great to (e.g.) be able to search for news accounts,
AND `account_type` = "News"
The data structure is ready on the next version of the directory, we just need to agree on the
noscrape
output.