Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding group to channel is not handled #40

Open
dblock opened this issue Jan 8, 2022 · 0 comments
Open

Adding group to channel is not handled #40

dblock opened this issue Jan 8, 2022 · 0 comments

Comments

@dblock
Copy link
Owner

dblock commented Jan 8, 2022

Adding a group to a channel incorrectly renders:

Screen Shot 2022-01-07 at 10 15 40 PM

Item should be the group.

{
    "id": 27512961,
    "action": "is collaborating with",
    "bulletin_id": 27530673,
    "connector": "on",
    "created_at": "2022-01-06T17:59:09.350Z",
    "item_id": 9178,
    "target_id": 1367590,
    "parent_id": 126988,
    "item_type": "Group",
    "target_type": "Channel",
    "parent_type": "Membership",
    "item": null,
    "target": {
        "id": 1367590,
        "title": "Test Channel",
        "created_at": "2022-01-05T21:31:39.574Z",
        "updated_at": "2022-01-08T01:37:33.719Z",
        "added_to_at": "2022-01-06T17:59:22.353Z",
        "published": true,
        "open": false,
        "collaboration": true,
        "collaborator_count": 3,
        "slug": "test-channel-1527426363",
        "length": 5,
        "kind": "default",
        "status": "closed",
        "user_id": 8683,
        "metadata": { "description": "moodboard" },
        "contents": null,
        "share_link": null,
        "follower_count": 3,
        "can_index": true,
        "owner_type": "Group",
        "owner_id": 9178,
        "owner_slug": "example-design",
        "nsfw?": false,
        "state": "available",
        "user": {
            "id": 8683,
            "created_at": "2015-11-10T15:51:37.992Z",
            "slug": "daniel-doubrovkine",
            "username": "Daniel Doubrovkine",
            "first_name": "Daniel",
            "last_name": "Doubrovkine",
            "full_name": "Daniel Doubrovkine",
            "avatar": "https://arena-avatars.s3.amazonaws.com/8683/small_5ac8881f8778e6793c2177d4b63edfb2.gif?1641416760",
            "avatar_image": { "thumb": "https://arena-avatars.s3.amazonaws.com/8683/small_5ac8881f8778e6793c2177d4b63edfb2.gif?1641416760", "display": "https://arena-avatars.s3.amazonaws.com/8683/medium_5ac8881f8778e6793c2177d4b63edfb2.gif?1641416760" },
            "channel_count": 67,
            "following_count": 132,
            "profile_id": 36305,
            "follower_count": 129,
            "initials": "PC",
            "can_index": true,
            "metadata": {
                "description": null
            },
            "is_premium": true,
            "is_lifetime_premium": false,
            "is_supporter": false,
            "is_exceeding_connections_limit": false,
            "is_confirmed": true,
            "is_pending_reconfirmation": false,
            "is_pending_confirmation": false,
            "badge": "premium",
            "base_class": "User",
            "class": "User"
        },
        "group": {
            "id": 9178,
            "class": "Group",
            "base_class": "Group",
            "created_at": "2022-01-05T21:04:16.765Z",
            "updated_at": "2022-01-05T21:08:30.035Z",
            "name": "company design",
            "description": "design @ company ",
            "visibility": 0,
            "slug": "example-design"
        },
        "base_class": "Channel",
        "class": "Channel"
    },
    "parent": null,
    "user": {
        "id": 8683,
        "created_at": "2015-11-10T15:51:37.992Z",
        "slug": "daniel-doubrovkine",
        "username": "Daniel Doubrovkine",
        "first_name": "Daniel",
        "last_name": "Doubrovkine",
        "full_name": "Daniel Doubrovkine",
        "avatar": "https://arena-avatars.s3.amazonaws.com/8683/small_5ac8881f8778e6793c2177d4b63edfb2.gif?1641416760",
        "avatar_image": { "thumb": "https://arena-avatars.s3.amazonaws.com/8683/small_5ac8881f8778e6793c2177d4b63edfb2.gif?1641416760", "display": "https://arena-avatars.s3.amazonaws.com/8683/medium_5ac8881f8778e6793c2177d4b63edfb2.gif?1641416760" },
        "channel_count": 67,
        "following_count": 132,
        "profile_id": 36305,
        "follower_count": 129,
        "initials": "PC",
        "can_index": true,
        "metadata": {
            "description": null
        },
        "is_premium": true,
        "is_lifetime_premium": false,
        "is_supporter": false,
        "is_exceeding_connections_limit": false,
        "is_confirmed": true,
        "is_pending_reconfirmation": false,
        "is_pending_confirmation": false,
        "badge": "premium",
        "base_class": "User",
        "class": "User"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant