gnuboard5-activitypub/README.md

82 lines
2.8 KiB
Markdown
Raw Normal View History

2022-06-29 12:10:49 +00:00
# gnuboard5-activitypub
ActivityPub implementation for GNUBOARD 5
2022-07-05 09:46:57 +00:00
## References
* https://www.w3.org/TR/activitypub/
* https://www.w3.org/TR/activitystreams-core/
* https://www.w3.org/TR/activitystreams-vocabulary/
* https://github.com/w3c/activitypub/issues/194
* https://docs.joinmastodon.org/spec/webfinger/
* https://organicdesign.nz/ActivityPub_Code
* https://socialhub.activitypub.rocks/t/posting-to-pleroma-inbox/1184
* https://github.com/broidHQ/integrations/tree/master/broid-schemas#readme
2022-06-29 12:11:50 +00:00
## 사용 전 설정
* `apstreams` 게시판 추가
2022-06-29 12:11:59 +00:00
* `apstreams` 사용자 추가
2022-07-01 09:31:46 +00:00
## 작업진행
2022-07-01 09:32:30 +00:00
- [x] WebFinger
2022-07-01 09:32:14 +00:00
- [x] User
- [x] Inbox
2022-07-03 14:54:00 +00:00
- [x] Outbox
2022-07-01 09:32:14 +00:00
- [x] Followers
- [x] Following
- [x] Liked
2022-07-05 09:48:31 +00:00
- [x] (Added) Geolocation
- [ ] (Added) File attachment
2022-07-01 09:33:59 +00:00
2022-07-05 09:25:05 +00:00
## 전문 예시
```json
{
2022-07-05 09:38:19 +00:00
"@context": "https://www.w3.org/ns/activitystreams",
2022-07-05 09:25:05 +00:00
"type": "Create",
2022-07-06 08:12:08 +00:00
"id": "http://utilhome.dothome.co.kr/bbs/board.php?bo_table=apstreams#Draft",
"to": ["https://www.w3.org/ns/activitystreams#Public", "http://utilhome.dothome.co.kr/?route=activitypub.user&mb_id=admin"],
"actor": "http://utilhome.dothome.co.kr/?route=activitypub.user&mb_id=admin",
2022-07-05 09:25:05 +00:00
"object": {
"type": "Note",
2022-07-05 09:38:19 +00:00
"generator": "GNUBOARD5 ActivityPub Plugin (INSTANCE_ID: 4d6076784cbd864ade7c746690d37051, INSTANCE_VERSION: 0.1.10-dev)",
2022-07-06 08:12:08 +00:00
"id": "http://utilhome.dothome.co.kr/bbs/board.php?bo_table=apstreams&wr_id=193",
"attributedTo": "http://utilhome.dothome.co.kr/?route=activitypub.user&mb_id=admin",
"content": "날씨 어때요? @admin@utilhome.dothome.co.kr",
2022-07-05 09:38:19 +00:00
"icon": "https://www.gravatar.com/avatar/bdbd5eb70305f1eaaa0340687758676a",
2022-07-05 09:25:05 +00:00
"location": {
2022-07-06 08:13:26 +00:00
"name": "121.88.93.28, 서울특별시 구로구 구로5동 (DLIVE), Seoul, Seoul-teukbyeolsi, Korea (Republic of), KR, 06030, +09:00",
2022-07-05 09:25:05 +00:00
"type": "Place",
2022-07-06 08:12:08 +00:00
"longitude": 126.8892945,
"latitude": 37.5001593,
"units": "m",
"_openweathermap_current": {
"dt": 1657094765,
"sunrise": 1657052227,
"sunset": 1657105004,
"temp": 307.05,
"feels_like": 311.66,
"pressure": 1005,
"humidity": 51,
"dew_point": 295.49,
"uvi": 2.14,
"clouds": 100,
"visibility": 10000,
"wind_speed": 3,
"wind_deg": 139,
"wind_gust": 4.21,
"weather": [{
"id": 804,
"main": "Clouds",
"description": "overcast clouds",
"icon": "04d"
}]
}
2022-07-05 09:25:05 +00:00
}
},
2022-07-06 08:12:08 +00:00
"published": "2022-07-06T08:07:01Z",
"updated": "2022-07-06T08:07:01Z"
2022-07-05 09:25:05 +00:00
}
```
2022-07-01 09:33:59 +00:00
## 문의
* gnh1201@gmail.com