Support the "account-type" #15

Closed
opened 2017-05-05 08:13:47 +02:00 by annando · 12 comments
annando commented 2017-05-05 08:13:47 +02:00 (Migrated from github.com)

Since the last versions we can define an account type (Person, Organization, News, Community). It would be good if the directory could support this.

Since the last versions we can define an account type (Person, Organization, News, Community). It would be good if the directory could support this.
MrPetovan commented 2017-05-05 16:48:29 +02:00 (Migrated from github.com)

Is there any specific rules depending on the account type? Or is it just about displaying the type?

Is there any specific rules depending on the account type? Or is it just about displaying the type?
annando commented 2017-05-05 18:00:15 +02:00 (Migrated from github.com)

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

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".
MrPetovan commented 2017-05-05 18:05:52 +02:00 (Migrated from github.com)

Ok, this is exactly what I had in mind, thanks for the clarification.

Ok, this is exactly what I had in mind, thanks for the clarification.
annando commented 2017-05-05 18:13:54 +02:00 (Migrated from github.com)

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.

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.
MrPetovan commented 2018-11-01 16:57:35 +01:00 (Migrated from github.com)

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.

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.
annando commented 2018-11-01 18:14:23 +01:00 (Migrated from github.com)

Normally we should export it since several versions, but I don't know where.

Normally we should export it since several versions, but I don't know where.
MrPetovan commented 2018-11-01 19:54:38 +01:00 (Migrated from github.com)

There's only a community flag in the noscrape output whether the account is a personal account or a forum.

See https://friendica.mrpetovan.com/noscrape/hypolite

{
	"addr": "hypolite@friendica.mrpetovan.com",
	"nick": "hypolite",
	"guid": "735a20292057e0afa5e14c2885654633",
	"key": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4YyL4Z36Ir\/c93PyiEnu\nOHawWwt1ysqjCTNiLTvWWQq0VeobmQhpUDWW9W2cWJGwFLxEPt7EC7tHC0z\/5hup\nj0u\/XRE3bJAMK09WX+k4pwL9YHsznbbUkBglYvU7fcxtV3Jf6LqB7uifCkGt9zif\nIRzN4bDhxUnLVlwGbhLSgsZPYMyDgNmmNre3CoUtQPUnZBqn52igMjsekKceAgcQ\nWKLoTF9j+6ktr\/bhFHCAZYpsBCooIhxL9Q1OgQgMvGfyp+uHUXIMeewnRrG5asA+\nTCUab2gu8XTW16JgZQ6oxFxOkkMhxZ6A6MJWsEmvUOKZXyDalQ2lQA3V0De313XQ\nLvXM+z1gCzkXrQa76uJB0M+dHLSDJe80uLf+tuiJdvqijxFK8Da+WDNvoHezdjCA\nKLjuf4dc+VAxUPUtNBILTP4hIVECutyxiKZVGRwz2+8a4ZkFLMmRMKnxcBGfQWiu\nByPqsmjTvd77ZRPmyCld+S6PM040Eb0pkqnAPFF8TJvyfE\/PaqHMoVHs4kJUOnrH\n1JXBDQw67ogfs4Cu9Nvv732DtPwjV8tP11tPfgnrfJPue3AO8+X2OEYvPx\/Jit+4\n9Bl\/yKVFMXi0OFDejnQ3O7ymB1W1ZaQbOdgtm\/yPNm40PCPrmBpI12qbr8NMFM15\njP3rHRIG989q4PZFeF4Am0sCAwEAAQ==\n-----END PUBLIC KEY-----\n",
	"homepage": "https:\/\/friendica.mrpetovan.com\/profile\/hypolite",
	"comm": false,
	"fn": "Hyp\ud83c\udf27lite Pe\u2602ov\ud83c\udf43n (he\/him)",
	"photo": "https:\/\/friendica.mrpetovan.com\/photo\/27330388315ae4ed2b03e3c116980490-4.jpg?ts=1540951359",
	"tags": ["videogame", "gaming", "boardgame", "politics", "philosophy", "development", "programming", "php"],
	"updated": "2018-11-01T13:31:31-04:00",
	"contacts": 383,
	"last-activity": "2018-44",
	"pdesc": "Subpar geek, french\/english, science, games, feminism, jokes and anything in between. Avatar by @DearMsDear@mastodon.art",
	"locality": "Brooklyn",
	"region": "New York",
	"country-name": "USA",
	"gender": "Male",
	"marital": "Partners",
	"about": "Subpar geek, french\/english, science, games, feminism, jokes and anything in between. Avatar by @DearMsDear@mastodon.art",
	"dfrn-request": "https:\/\/friendica.mrpetovan.com\/dfrn_request\/hypolite",
	"dfrn-confirm": "https:\/\/friendica.mrpetovan.com\/dfrn_confirm\/hypolite",
	"dfrn-notify": "https:\/\/friendica.mrpetovan.com\/dfrn_notify\/hypolite",
	"dfrn-poll": "https:\/\/friendica.mrpetovan.com\/dfrn_poll\/hypolite"
}
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 ```json { "addr": "hypolite@friendica.mrpetovan.com", "nick": "hypolite", "guid": "735a20292057e0afa5e14c2885654633", "key": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4YyL4Z36Ir\/c93PyiEnu\nOHawWwt1ysqjCTNiLTvWWQq0VeobmQhpUDWW9W2cWJGwFLxEPt7EC7tHC0z\/5hup\nj0u\/XRE3bJAMK09WX+k4pwL9YHsznbbUkBglYvU7fcxtV3Jf6LqB7uifCkGt9zif\nIRzN4bDhxUnLVlwGbhLSgsZPYMyDgNmmNre3CoUtQPUnZBqn52igMjsekKceAgcQ\nWKLoTF9j+6ktr\/bhFHCAZYpsBCooIhxL9Q1OgQgMvGfyp+uHUXIMeewnRrG5asA+\nTCUab2gu8XTW16JgZQ6oxFxOkkMhxZ6A6MJWsEmvUOKZXyDalQ2lQA3V0De313XQ\nLvXM+z1gCzkXrQa76uJB0M+dHLSDJe80uLf+tuiJdvqijxFK8Da+WDNvoHezdjCA\nKLjuf4dc+VAxUPUtNBILTP4hIVECutyxiKZVGRwz2+8a4ZkFLMmRMKnxcBGfQWiu\nByPqsmjTvd77ZRPmyCld+S6PM040Eb0pkqnAPFF8TJvyfE\/PaqHMoVHs4kJUOnrH\n1JXBDQw67ogfs4Cu9Nvv732DtPwjV8tP11tPfgnrfJPue3AO8+X2OEYvPx\/Jit+4\n9Bl\/yKVFMXi0OFDejnQ3O7ymB1W1ZaQbOdgtm\/yPNm40PCPrmBpI12qbr8NMFM15\njP3rHRIG989q4PZFeF4Am0sCAwEAAQ==\n-----END PUBLIC KEY-----\n", "homepage": "https:\/\/friendica.mrpetovan.com\/profile\/hypolite", "comm": false, "fn": "Hyp\ud83c\udf27lite Pe\u2602ov\ud83c\udf43n (he\/him)", "photo": "https:\/\/friendica.mrpetovan.com\/photo\/27330388315ae4ed2b03e3c116980490-4.jpg?ts=1540951359", "tags": ["videogame", "gaming", "boardgame", "politics", "philosophy", "development", "programming", "php"], "updated": "2018-11-01T13:31:31-04:00", "contacts": 383, "last-activity": "2018-44", "pdesc": "Subpar geek, french\/english, science, games, feminism, jokes and anything in between. Avatar by @DearMsDear@mastodon.art", "locality": "Brooklyn", "region": "New York", "country-name": "USA", "gender": "Male", "marital": "Partners", "about": "Subpar geek, french\/english, science, games, feminism, jokes and anything in between. Avatar by @DearMsDear@mastodon.art", "dfrn-request": "https:\/\/friendica.mrpetovan.com\/dfrn_request\/hypolite", "dfrn-confirm": "https:\/\/friendica.mrpetovan.com\/dfrn_confirm\/hypolite", "dfrn-notify": "https:\/\/friendica.mrpetovan.com\/dfrn_notify\/hypolite", "dfrn-poll": "https:\/\/friendica.mrpetovan.com\/dfrn_poll\/hypolite" } ```
annando commented 2018-11-02 00:57:41 +01:00 (Migrated from github.com)

No, we really should transmit the other type in some way.

No, we really should transmit the other type in some way.
MrPetovan commented 2018-11-02 02:51:49 +01:00 (Migrated from github.com)

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.

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.
annando commented 2018-11-02 06:19:34 +01:00 (Migrated from github.com)

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,

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,
MrPetovan commented 2018-11-02 06:30:30 +01:00 (Migrated from github.com)

AND `account_type` = "News"

``AND `account_type` = "News" ``
MrPetovan commented 2018-11-05 06:05:44 +01:00 (Migrated from github.com)

The data structure is ready on the next version of the directory, we just need to agree on the noscrape output.

The data structure is ready on the next version of the directory, we just need to agree on the `noscrape` output.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: friendica/dir#15
No description provided.