ActivityPub (Fediverse) implementation for GNUBOARD5
Go to file
2022-07-07 12:02:52 +09:00
adm Update activitypub_form.php 2022-07-04 17:01:10 +09:00
extend Update activitypub.extend.php 2022-07-07 12:02:52 +09:00
LICENSE Create LICENSE 2022-07-05 18:52:00 +09:00
README.md Update README.md 2022-07-06 19:38:44 +09:00

gnuboard5-activitypub

ActivityPub implementation for GNUBOARD 5

References

사용 전 설정

  • apstreams 게시판 추가
  • apstreams 사용자 추가

작업진행

  • WebFinger
  • User
  • Inbox
  • Outbox
  • Followers
  • Following
  • Liked
  • (Added) Geolocation
  • (Added) File attachment

부가기능 (옵션)

  • 날씨 (openweathermap.org)
  • 환율 (koreaexim.go.kr)

전문 예시

{
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Create",
    "id": "http://example.org/bbs/board.php?bo_table=apstreams#Draft",
    "to": ["https://www.w3.org/ns/activitystreams#Public", "http://example.org/?route=activitypub.user&mb_id=admin"],
    "actor": "http://example.org/?route=activitypub.user&mb_id=admin",
    "object": {
        "type": "Note",
        "generator": "GNUBOARD5 ActivityPub Plugin (INSTANCE_ID: 4d6076784cbd864ade7c746690d37051, INSTANCE_VERSION: 0.1.11-dev)",
        "id": "http://example.org/bbs/board.php?bo_table=apstreams&wr_id=221",
        "attributedTo": "http://example.org/?route=activitypub.user&mb_id=admin",
        "content": "hello, world @admin@example.org",
        "icon": "https://www.gravatar.com/avatar/bdbd5eb70305f1eaaa0340687758676a",
        "location": {
            "name": "xxx.xxx.xxx.xxx, 서울특별시 구로구 구로5동 (DLIVE), Seoul, Seoul-teukbyeolsi, Korea (Republic of), KR, 06030, +09:00",
            "type": "Place",
            "longitude": 126.8892945,
            "latitude": 37.5001593,
            "units": "m",
            "_weather": {
                "dt": 1657103776,
                "sunrise": 1657052227,
                "sunset": 1657105004,
                "temp": 305.05,
                "feels_like": 310.6,
                "pressure": 1005,
                "humidity": 62,
                "dew_point": 296.86,
                "uvi": 0,
                "clouds": 75,
                "visibility": 10000,
                "wind_speed": 3.09,
                "wind_deg": 150,
                "weather": [{
                    "id": 803,
                    "main": "Clouds",
                    "description": "broken clouds",
                    "icon": "04d"
                }]
            },
            "_exchange": {
                "KRW": {
                    "AED": 353.38,
                    "AUD": 882.25,
                    "BHD": 3442.79,
                    "BND": 923.71,
                    "CAD": 996.28,
                    "CHF": 1340.42,
                    "CNH": 194.16,
                    "DKK": 179.12,
                    "EUR": 1332.72,
                    "GBP": 1551.95,
                    "HKD": 165.42,
                    "IDR(100)": 8.66,
                    "JPY(100)": 957.05,
                    "KRW": 0,
                    "KWD": 2135.85,
                    "MYR": 293.7,
                    "NOK": 129.06,
                    "NZD": 800.67,
                    "SAR": 345.76,
                    "SEK": 123.57,
                    "SGD": 923.71,
                    "THB": 36.11,
                    "USD": 1298
                }
            }
        }
    },
    "published": "2022-07-06T10:36:18Z",
    "updated": "2022-07-06T10:36:18Z"
}

문의